コード例 #1
0
 public void IEitherReturnsCorrectType(IEither givenInterface, Type expectedType)
 {
     Assert.AreEqual(expectedType, givenInterface.ToObject().GetType());
 }
コード例 #2
0
 public void IEitherReturnsCorrectObject(IEither givenInterface, object expectedObject)
 {
     Assert.AreEqual(expectedObject, givenInterface.ToObject());
 }