示例#1
0
        public void ShouldNotBeAnotherProject()
        {
            //GIVEN
            var project      = Any.Instance <IDependencyPathBasedRuleTarget>();
            var searchResult = new ProjectFoundSearchResult(project, Any.Integer());

            //WHEN
            var isNotAnotherProject = searchResult.IsNot(Any.OtherThan(project));

            //THEN
            isNotAnotherProject.Should().BeTrue();
        }
示例#2
0
        public void ShouldBeItself()
        {
            //GIVEN
            var project      = Any.Instance <IDependencyPathBasedRuleTarget>();
            var searchResult = new ProjectFoundSearchResult(project, Any.Integer());

            //WHEN
            var isNotItself = searchResult.IsNot(project);

            //THEN
            isNotItself.Should().BeFalse();
        }