Fixing build errors
This commit is contained in:
parent
af0923b68f
commit
003718c564
|
|
@ -60,6 +60,7 @@
|
||||||
<Compile Include="Infrastructure\FeatureReference.cs" />
|
<Compile Include="Infrastructure\FeatureReference.cs" />
|
||||||
<Compile Include="Infrastructure\ParsingHelpers.cs" />
|
<Compile Include="Infrastructure\ParsingHelpers.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
|
||||||
<Content Include="project.json"/>
|
<Content Include="project.json"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using Shouldly;
|
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.FeatureModel.Tests
|
namespace Microsoft.AspNet.FeatureModel.Tests
|
||||||
|
|
@ -14,11 +13,11 @@ namespace Microsoft.AspNet.FeatureModel.Tests
|
||||||
|
|
||||||
interfaces.Add(typeof(IThing), thing);
|
interfaces.Add(typeof(IThing), thing);
|
||||||
|
|
||||||
interfaces[typeof(IThing)].ShouldBe(thing);
|
Assert.Equal(interfaces[typeof(IThing)], thing);
|
||||||
|
|
||||||
object thing2;
|
object thing2;
|
||||||
interfaces.TryGetValue(typeof(IThing), out thing2).ShouldBe(true);
|
Assert.True(interfaces.TryGetValue(typeof(IThing), out thing2));
|
||||||
thing2.ShouldBe(thing);
|
Assert.Equal(thing2, thing);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|
@ -29,11 +28,11 @@ namespace Microsoft.AspNet.FeatureModel.Tests
|
||||||
|
|
||||||
interfaces[typeof(IThing)] = thing;
|
interfaces[typeof(IThing)] = thing;
|
||||||
|
|
||||||
interfaces[typeof(IThing)].ShouldBe(thing);
|
Assert.Equal(interfaces[typeof(IThing)], thing);
|
||||||
|
|
||||||
object thing2;
|
object thing2;
|
||||||
interfaces.TryGetValue(typeof(IThing), out thing2).ShouldBe(true);
|
Assert.True(interfaces.TryGetValue(typeof(IThing), out thing2));
|
||||||
thing2.ShouldBe(thing);
|
Assert.Equal(thing2, thing);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|
@ -44,7 +43,7 @@ namespace Microsoft.AspNet.FeatureModel.Tests
|
||||||
|
|
||||||
interfaces.Add(typeof(IThing), thing);
|
interfaces.Add(typeof(IThing), thing);
|
||||||
|
|
||||||
Should.Throw<ArgumentException>(() => interfaces.Add(typeof(IThing), thing));
|
Assert.Throws<ArgumentException>(() => interfaces.Add(typeof(IThing), thing));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using Microsoft.AspNet.Abstractions;
|
using Microsoft.AspNet.Abstractions;
|
||||||
using Shouldly;
|
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.PipelineCore.Tests
|
namespace Microsoft.AspNet.PipelineCore.Tests
|
||||||
|
|
@ -18,7 +17,7 @@ namespace Microsoft.AspNet.PipelineCore.Tests
|
||||||
mockHttpResponse.SetupProperty(x => x.StatusCode);
|
mockHttpResponse.SetupProperty(x => x.StatusCode);
|
||||||
|
|
||||||
app.Invoke(mockHttpContext.Object);
|
app.Invoke(mockHttpContext.Object);
|
||||||
mockHttpContext.Object.Response.StatusCode.ShouldBe(404);
|
Assert.Equal(mockHttpContext.Object.Response.StatusCode, 404);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue