Пример #1
0
        public void AreAllEqualImplementedCorrectlyShouldThrowIfNoAssembly()
        {
            //  #   Arrange.
            var sut = new Verify();

            //  #   Act.
            Action comparison = () => { sut.AreAllEqualsImplementedCorrectly(null); };

            //  #   Assert.
            comparison.Should().Throw <ArgumentException>();
        }
Пример #2
0
        public void AreAllEqualsImplementedCorrectlyTests(string assemblyName, bool expectedResult, Type expectedResultClass, string expectedResultMessage)
        {
            var sut      = new Verify();
            var assembly = Assembly.LoadFrom(assemblyName);

            //  #   Act.
            var resAllOk = sut.AreAllEqualsImplementedCorrectly(assembly);

            //  #   Assert.
            resAllOk.Should().Be(expectedResult);
            sut.ResultClass.Should().Be(expectedResultClass);
            sut.ResultMessage.Should().Be(expectedResultMessage);
        }