Update the test

This commit is contained in:
Justin Goshi 2017-02-08 14:26:14 -08:00
parent c0da70adf6
commit 5e3f368338

View file

@ -31,6 +31,20 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
mockProj.Properties.Count(p => p.Name == "OutputType").Should().Be(1);
mockProj.Properties.First(p => p.Name == "OutputType").Value.Should().Be("Exe");
mockProj.Items.Count(i => i.ItemType.Equals("Compile", StringComparison.Ordinal))
.Should().Be(1);
mockProj.Items.Count(i =>
i.ItemType.Equals("Compile", StringComparison.Ordinal) &&
i.Remove.Equals("node_modules"))
.Should().Be(1);
mockProj.Items.Count(i => i.ItemType.Equals("EmbeddedResource", StringComparison.Ordinal))
.Should().Be(1);
mockProj.Items.Count(i =>
i.ItemType.Equals("EmbeddedResource", StringComparison.Ordinal) &&
i.Remove.Equals("node_modules"))
.Should().Be(1);
}
[Fact]