public void GreaterThanOrEqual_TwoObjectsOfDifferentClassWithSmallerUnderlyingValueInSecond_ShouldThrowInvalidOperationException() { var testValue1 = new SecondEnum(TestEnum.Value.Second); var testValue2 = new FirstEnum(TestEnum.Value.First); Assert.Throws <InvalidOperationException>(() => { var result = testValue1 >= testValue2; }); }
protected override void Because_of() { _resultSecondEnum = Mapper.Map <SecondEnum>(FirstEnum.Cat); _resultFirstEnum = Mapper.Map <FirstEnum>(SecondEnum.dog); }