コード例 #1
0
        public void When_ProcessData_Is_Set_And_Null_Data_Are_Compared_Then_Exception_Is_Thrown()
        {
            var before = new Complex {
            };
            var after  = new Complex {
            };

            var    complexComparer = new ComplexComparerWithProcessData();
            Action act             = () => complexComparer.ComparisonResults(before, after).ToList();

            act.Should().Throw <ArgumentNullException>();
        }
コード例 #2
0
        public void When_ProcessData_Is_Set_And_Data_With_Null_Values_Then_Exception_Is_Thrown()
        {
            var before = new Complex
            {
                Prop1 = new List <SomeClass> {
                    null, null
                }
            };
            var after = new Complex
            {
                Prop1 = new List <SomeClass> {
                    null, null
                }
            };

            var    complexComparer = new ComplexComparerWithProcessData();
            Action act             = () => complexComparer.ComparisonResults(before, after).ToList();

            act.Should().Throw <ArgumentNullException>();
        }