コード例 #1
0
        public void Should_Be_Verified_When_Verfiable_Called()
        {
            var verifiableWrapper = new VerifiableWrapper();

            verifiableWrapper.Verifiable();
            Assert.That(verifiableWrapper.Verified, Is.True);
        }
コード例 #2
0
        public void Should_Be_Verified_With_FailMessage_When_Verfiable_Called_With_Fail_Message()
        {
            var verifiableWrapper = new VerifiableWrapper();
            var failMessage       = "fail message";

            verifiableWrapper.Verifiable(failMessage);
            Assert.That(verifiableWrapper.Verified, Is.True);
            Assert.That(verifiableWrapper.VerifiableFailMessage, Is.EqualTo(failMessage));
        }