Fixing build errors

This commit is contained in:
Louis DeJardin 2014-01-31 13:35:26 -08:00
parent af0923b68f
commit 003718c564
3 changed files with 9 additions and 10 deletions

View File

@ -60,6 +60,7 @@
<Compile Include="Infrastructure\FeatureReference.cs" />
<Compile Include="Infrastructure\ParsingHelpers.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Content Include="project.json"/>
</ItemGroup>
<ItemGroup>

View File

@ -1,5 +1,4 @@
using System;
using Shouldly;
using Xunit;
namespace Microsoft.AspNet.FeatureModel.Tests
@ -14,11 +13,11 @@ namespace Microsoft.AspNet.FeatureModel.Tests
interfaces.Add(typeof(IThing), thing);
interfaces[typeof(IThing)].ShouldBe(thing);
Assert.Equal(interfaces[typeof(IThing)], thing);
object thing2;
interfaces.TryGetValue(typeof(IThing), out thing2).ShouldBe(true);
thing2.ShouldBe(thing);
Assert.True(interfaces.TryGetValue(typeof(IThing), out thing2));
Assert.Equal(thing2, thing);
}
[Fact]
@ -29,11 +28,11 @@ namespace Microsoft.AspNet.FeatureModel.Tests
interfaces[typeof(IThing)] = thing;
interfaces[typeof(IThing)].ShouldBe(thing);
Assert.Equal(interfaces[typeof(IThing)], thing);
object thing2;
interfaces.TryGetValue(typeof(IThing), out thing2).ShouldBe(true);
thing2.ShouldBe(thing);
Assert.True(interfaces.TryGetValue(typeof(IThing), out thing2));
Assert.Equal(thing2, thing);
}
[Fact]
@ -44,7 +43,7 @@ namespace Microsoft.AspNet.FeatureModel.Tests
interfaces.Add(typeof(IThing), thing);
Should.Throw<ArgumentException>(() => interfaces.Add(typeof(IThing), thing));
Assert.Throws<ArgumentException>(() => interfaces.Add(typeof(IThing), thing));
}
}
}

View File

@ -1,5 +1,4 @@
using Microsoft.AspNet.Abstractions;
using Shouldly;
using Xunit;
namespace Microsoft.AspNet.PipelineCore.Tests
@ -18,7 +17,7 @@ namespace Microsoft.AspNet.PipelineCore.Tests
mockHttpResponse.SetupProperty(x => x.StatusCode);
app.Invoke(mockHttpContext.Object);
mockHttpContext.Object.Response.StatusCode.ShouldBe(404);
Assert.Equal(mockHttpContext.Object.Response.StatusCode, 404);
}
}
}