public void ShouldNotThrowForLegacyProject() { // Arrange using (var tempFile = new AutoTempFile()) { tempFile.StringData = LEGACY_CSPROJ.Trim(); // Act Expect(() => Create(tempFile.Path)) .Not.To.Throw(); // Assert } }
public void ShouldReturnAllFilesWhichAre_Content_Include() { using (var tempFile = new AutoTempFile()) { // Arrange tempFile.StringData = LEGACY_CSPROJ.Trim(); var sut = Create(tempFile.Path); // Act var result = sut.ContentFiles; // Assert Expect(result).To.Equal( new[] { "README.md", "GPL.txt" }); } }
public void ShouldReturnAllFilesWhichAre_Compile_Include() { using (var tempFile = new AutoTempFile()) { // Arrange tempFile.StringData = LEGACY_CSPROJ.Trim(); var sut = Create(tempFile.Path); // Act var result = sut.CompiledFiles; // Assert Expect(result).To.Equal( new[] { "Commands\\Moo\\MooCommand.cs", "Queries\\Cow\\CowQuery.cs", "Base.cs" }); } }