public void ClassSyntax_GetInheritance_WhenFlagsNotSet_ShouldReturnDefault() { TypeDef typeDef = new TypeDef(); ClassSyntax syntax = new ClassSyntax(typeDef); Assert.AreEqual(Inheritance.Default, syntax.GetInheritance()); }
public void ClassSyntax_GetInheritance_WhenFlagsSealed_ShouldReturnSealed() { TypeDef typeDef = new TypeDef(); ClassSyntax syntax = new ClassSyntax(typeDef); typeDef.Flags = Reflection.Core.COFF.TypeAttributes.Sealed; Assert.AreEqual(Inheritance.Sealed, syntax.GetInheritance()); }
public void ClassSyntax_GetInheritance_WhenFlagsAbstract_ShouldReturnAbstract() { TypeDef typeDef = new TypeDef(); ClassSyntax syntax = new ClassSyntax(typeDef); typeDef.Flags = Reflection.Core.COFF.TypeAttributes.Abstract; Assert.AreEqual(Inheritance.Abstract, syntax.GetInheritance()); }