예제 #1
0
        public void Profile_With_Ignore_And_Mappings_Are_Valid()
        {
            // arrange
            var profile = new Profile2();

            // act
            var result = profile.ValidateExpression();

            // assert
            result.Success.Should().BeTrue();
            result.ExpressionResults.Count.Should().Be(0);
        }
예제 #2
0
        public void Add_Multiple_Profiles_By_Instance_Are_Stored()
        {
            // arrange
            var p1 = new Profile1();
            var p2 = new Profile2();

            _subject.Profiles.Should().BeEmpty();

            // act
            _subject.AddProfile(p1);
            _subject.AddProfile(p2);

            // assert
            _subject.Profiles.Should().Contain(x => x.GetType() == p1.GetType());
            _subject.Profiles.Should().Contain(x => x.GetType() == p2.GetType());
        }