public void IsRazorDocumentItem_NoInclude_ReturnsFalse() { // Arrange var item = new TestMSBuildItem("Content"); // Act var result = DefaultRazorProjectHost.IsRazorDocumentItem(item); // Assert Assert.False(result); }
public void IsRazorDocumentItem_CSHTMLFile_ReturnsTrue() { // Arrange var item = new TestMSBuildItem("Content") { Include = "\\Path\\To\\File.cshtml", }; // Act var result = DefaultRazorProjectHost.IsRazorDocumentItem(item); // Assert Assert.True(result); }
public void IsRazorDocumentItem_NonRazorFile_ReturnsFalse() { // Arrange var item = new TestMSBuildItem("Content") { Include = "\\Path\\To\\File.notrazor", }; // Act var result = DefaultRazorProjectHost.IsRazorDocumentItem(item); // Assert Assert.False(result); }