Esempio n. 1
0
        public void DefaultGroupValue_IsEqualTo(object otherVal)
        {
            G groupState = Mock.Of <G>();
            DefaultValueProvider <G> valueProvider = new DefaultValueProvider <G>();

            DefaultGroupValue <G> sut    = new DefaultGroupValue <G>(groupState);
            IValue <G, bool>      result = (IValue <G, bool>)sut.IsEqualTo(valueProvider.GetAsValue(otherVal), valueProvider);

            Assert.False(result.Data);
        }
Esempio n. 2
0
        public void DefaultGroupValue_IsEqualTo_SameGroup()
        {
            G groupState = Mock.Of <G>();
            DefaultValueProvider <G> valueProvider   = new DefaultValueProvider <G>();
            DefaultGroupValue <G>    otherGroupValue = new DefaultGroupValue <G>(groupState);

            DefaultGroupValue <G> sut    = new DefaultGroupValue <G>(groupState);
            IValue <G, bool>      result = (IValue <G, bool>)sut.IsEqualTo(otherGroupValue, valueProvider);

            Assert.True(result.Data);
        }