Esempio n. 1
0
        public void DefaultActionValue_IsEqualTo_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.IsEqualTo(sut, valueProvider);

            Assert.True(result.Data);
        }
Esempio n. 2
0
        public void DefaultActionValue_IsEqualTo(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.IsEqualTo(valueProvider.GetAsValue(otherVal), valueProvider);

            Assert.False(result.Data);
        }
Esempio n. 3
0
        public void DefaultActionValue_IsEqualTo_OtherAction()
        {
            G groupState = Mock.Of <G>();
            DefaultValueProvider <G> valueProvider    = new DefaultValueProvider <G>();
            DefaultActionValue <G>   otherActionValue = new DefaultActionValue <G>(groupState, 10);

            DefaultActionValue <G> sut    = new DefaultActionValue <G>(groupState, 10);
            IValue <G, bool>       result = (IValue <G, bool>)sut.IsEqualTo(otherActionValue, valueProvider);

            Assert.False(result.Data);
        }