Upgrade to xunit 2.3.0-beta4
This commit is contained in:
parent
a1d26bef4e
commit
adf3cb70aa
|
|
@ -8,8 +8,8 @@
|
||||||
<NETStandardImplicitPackageVersion>2.0.0-*</NETStandardImplicitPackageVersion>
|
<NETStandardImplicitPackageVersion>2.0.0-*</NETStandardImplicitPackageVersion>
|
||||||
<NETStandardLibraryNETFrameworkVersion>2.0.0-*</NETStandardLibraryNETFrameworkVersion>
|
<NETStandardLibraryNETFrameworkVersion>2.0.0-*</NETStandardLibraryNETFrameworkVersion>
|
||||||
<RuntimeFrameworkVersion Condition="'$(TargetFramework)'=='netcoreapp2.0'">2.0.0-*</RuntimeFrameworkVersion>
|
<RuntimeFrameworkVersion Condition="'$(TargetFramework)'=='netcoreapp2.0'">2.0.0-*</RuntimeFrameworkVersion>
|
||||||
<TestSdkVersion>15.3.0-*</TestSdkVersion>
|
<TestSdkVersion>15.3.0</TestSdkVersion>
|
||||||
<XunitVersion>2.3.0-beta2-*</XunitVersion>
|
<XunitVersion>2.3.0-beta4-build3742</XunitVersion>
|
||||||
<SystemReflectionMetadataVersion>1.5.0-*</SystemReflectionMetadataVersion>
|
<SystemReflectionMetadataVersion>1.5.0-*</SystemReflectionMetadataVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -335,8 +335,8 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Assert.True(logProvider.Logger.Messages.ToList().Any(m =>
|
Assert.Contains(logProvider.Logger.Messages.ToList(), m =>
|
||||||
m.StartsWith(StringsHelpers.GetResourceString("FormatDatabaseErrorPageMiddleware_ContextNotRegistered", typeof(BloggingContext)))));
|
m.StartsWith(StringsHelpers.GetResourceString("FormatDatabaseErrorPageMiddleware_ContextNotRegistered", typeof(BloggingContext))));
|
||||||
}
|
}
|
||||||
|
|
||||||
class ContextNotRegisteredInServicesMiddleware
|
class ContextNotRegisteredInServicesMiddleware
|
||||||
|
|
@ -390,8 +390,8 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Assert.True(logProvider.Logger.Messages.ToList().Any(m =>
|
Assert.Contains(logProvider.Logger.Messages.ToList(), m =>
|
||||||
m.StartsWith(StringsHelpers.GetResourceString("FormatDatabaseErrorPageMiddleware_Exception"))));
|
m.StartsWith(StringsHelpers.GetResourceString("FormatDatabaseErrorPageMiddleware_Exception")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ namespace Microsoft.AspNetCore.Diagnostics.Tests
|
||||||
var store = t.Item2;
|
var store = t.Item2;
|
||||||
|
|
||||||
var testThread = new TestThread(logger);
|
var testThread = new TestThread(logger);
|
||||||
Thread workerThread = new Thread(testThread.work);
|
Thread workerThread = new Thread(testThread.Work);
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
workerThread.Start();
|
workerThread.Start();
|
||||||
|
|
@ -168,7 +168,7 @@ namespace Microsoft.AspNetCore.Diagnostics.Tests
|
||||||
var store = t.Item2;
|
var store = t.Item2;
|
||||||
|
|
||||||
var testThread = new TestThread(logger);
|
var testThread = new TestThread(logger);
|
||||||
Thread workerThread = new Thread(testThread.work);
|
Thread workerThread = new Thread(testThread.Work);
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
workerThread.Start();
|
workerThread.Start();
|
||||||
|
|
@ -193,11 +193,11 @@ namespace Microsoft.AspNetCore.Diagnostics.Tests
|
||||||
.Root;
|
.Root;
|
||||||
Assert.NotNull(root2);
|
Assert.NotNull(root2);
|
||||||
|
|
||||||
Assert.Equal(0, root1.Children.Count);
|
Assert.Empty(root1.Children);
|
||||||
Assert.Equal(2, root1.Messages.Count);
|
Assert.Equal(2, root1.Messages.Count);
|
||||||
Assert.Equal(1, root2.Children.Count);
|
Assert.Single(root2.Children);
|
||||||
Assert.Equal(12, root2.Messages.Count);
|
Assert.Equal(12, root2.Messages.Count);
|
||||||
Assert.Equal(0, root2.Children.First().Children.Count);
|
Assert.Empty(root2.Children.First().Children);
|
||||||
Assert.Equal(3, root2.Children.First().Messages.Count);
|
Assert.Equal(3, root2.Children.First().Messages.Count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -327,7 +327,7 @@ namespace Microsoft.AspNetCore.Diagnostics.Tests
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void work()
|
public void Work()
|
||||||
{
|
{
|
||||||
using (_logger.BeginScope("test12"))
|
using (_logger.BeginScope("test12"))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ namespace Microsoft.AspNetCore.Diagnostics.Tests
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
contextMock.VerifyGet(c => c.Request.Query, Times.AtLeastOnce());
|
contextMock.VerifyGet(c => c.Request.Query, Times.AtLeastOnce());
|
||||||
Assert.True(response.Contains("<title>ASP.NET Core Logs</title>"));
|
Assert.Contains("<title>ASP.NET Core Logs</title>", response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -156,7 +156,7 @@ namespace Microsoft.AspNetCore.Diagnostics.Tests
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
contextMock.VerifyGet(c => c.Request.Query, Times.AtLeastOnce());
|
contextMock.VerifyGet(c => c.Request.Query, Times.AtLeastOnce());
|
||||||
Assert.True(response.Contains("Invalid Id"));
|
Assert.Contains("Invalid Id", response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue