public void DefaultActionValue_IsNotEqualTo_SameAction() { G groupState = Mock.Of <G>(); DefaultValueProvider <G> valueProvider = new DefaultValueProvider <G>(); DefaultActionValue <G> sut = new DefaultActionValue <G>(groupState, 10); IValue <G, bool> result = (IValue <G, bool>)sut.IsNotEqualTo(sut, valueProvider); Assert.False(result.Data); }
public void DefaultActionValue_IsNotEqualTo(object otherVal) { G groupState = Mock.Of <G>(); DefaultValueProvider <G> valueProvider = new DefaultValueProvider <G>(); DefaultActionValue <G> sut = new DefaultActionValue <G>(groupState, 10); IValue <G, bool> result = (IValue <G, bool>)sut.IsNotEqualTo(valueProvider.GetAsValue(otherVal), valueProvider); Assert.True(result.Data); }