public void BuilderWithoutInheritsDoesNothing() { // Arrange var builder = new ViewMasterPageControlBuilder(); var derivedType = new CodeTypeDeclaration(); derivedType.BaseTypes.Add("basetype"); // Act builder.ProcessGeneratedCode(null, null, derivedType, null, null); // Assert Assert.AreEqual("basetype", derivedType.BaseTypes.Cast<CodeTypeReference>().Single().BaseType); }
public void BuilderWithoutInheritsDoesNothing() { // Arrange var builder = new ViewMasterPageControlBuilder(); var derivedType = new CodeTypeDeclaration(); derivedType.BaseTypes.Add("basetype"); // Act builder.ProcessGeneratedCode(null, null, derivedType, null, null); // Assert Assert.AreEqual("basetype", derivedType.BaseTypes.Cast <CodeTypeReference>().Single().BaseType); }