Пример #1
0
 public void SetUp()
 {
     Matcher     = new AssignableFromConstraint(typeof(D1));
     GoodValues  = new object[] { new D1(), new B() };
     BadValues   = new object[] { new D2() };
     Description = "Type assignable from <NUnit.Framework.Constraints.Tests.D1>";
 }
Пример #2
0
 public void SetUp()
 {
     Matcher = new AssignableFromConstraint(typeof(D1));
     GoodValues = new object[] { new D1(), new B() };
     BadValues = new object[] { new D2() };
     Description = "Type assignable from <NUnit.Framework.Constraints.Tests.D1>";
 }
Пример #3
0
 public void SetUp()
 {
     theConstraint = new AssignableFromConstraint(typeof(D1));
     expectedDescription = string.Format("assignable from <{0}>", typeof(D1));
     stringRepresentation = string.Format("<assignablefrom {0}>", typeof(D1));
 }
Пример #4
0
 public void SetUp()
 {
     theConstraint        = new AssignableFromConstraint(typeof(D1));
     expectedDescription  = string.Format("assignable from <{0}>", typeof(D1));
     stringRepresentation = string.Format("<assignablefrom {0}>", typeof(D1));
 }