示例#1
0
 public void EqualsMethodTestOnOtherTypes()
 {
     AssertTypesAreSame(GBaseAttributeType.ForName("xxx"),
                        GBaseAttributeType.ForName("xxx"));
     AssertTypesAreDifferent(GBaseAttributeType.ForName("xxx"),
                             GBaseAttributeType.ForName("xyx"));
 }
示例#2
0
        public void ForNameCreatesNewOtherTypes()
        {
            GBaseAttributeType other1 = GBaseAttributeType.ForName("sometype");

            Assert.AreEqual("sometype", other1.Name, "name");
            Assert.AreEqual(StandardGBaseAttributeTypeIds.otherType, other1.Id);
        }
示例#3
0
 public void ForNameDoesNotCreateNewStandardTypes()
 {
     foreach (GBaseAttributeType type in GBaseAttributeType.AllStandardTypes)
     {
         Assert.IsTrue(Object.ReferenceEquals(type,
                                              GBaseAttributeType.ForName(type.Name)));
     }
 }
示例#4
0
 public void GenerateTest()
 {
     AssertRereadIsSame(new GBaseAttribute("bozo",
                                           GBaseAttributeType.ForName("clown"),
                                           "oops !"));
 }