public void IEitherReturnsCorrectType(IEither givenInterface, Type expectedType) { Assert.AreEqual(expectedType, givenInterface.ToObject().GetType()); }
public void IEitherReturnsCorrectObject(IEither givenInterface, object expectedObject) { Assert.AreEqual(expectedObject, givenInterface.ToObject()); }