public void IsValidRazorFileInfoCollection_ReturnsTrue_IfTypeDerivesFromRazorFileInfoCollection(Type type) { // Act var result = RazorFileInfoCollections.IsValidRazorFileInfoCollection(type); // Assert Assert.True(result); }
public void IsValidRazorFileInfoCollection_ReturnsFalse_IfTypeHasGenericParameters() { // Arrange var type = typeof(GenericRazorFileInfoCollection <>); // Act var result = RazorFileInfoCollections.IsValidRazorFileInfoCollection(type); // Assert Assert.False(result); }
public void IsValidRazorFileInfoCollection_ReturnsFalse_IfTypeDoesNotDeriveFromRazorFileInfoCollection() { // Arrange var type = typeof(NonSubTypeRazorFileInfoCollection); // Act var result = RazorFileInfoCollections.IsValidRazorFileInfoCollection(type); // Assert Assert.False(result); }
public void IsValidRazorFileInfoCollection_ReturnsFalse_IfTypeIsAbstract() { // Arrange var type = typeof(AbstractRazorFileInfoCollection); // Act var result = RazorFileInfoCollections.IsValidRazorFileInfoCollection(type); // Assert Assert.False(result); }