Beispiel #1
0
        public void ThrowsTestOpsErrorException()
        {
            TestOpsErrorException ex = Assert.Throws <TestOpsErrorException>(
                delegate { ThrowOpsErrorUsecase.Execute(); });

            Assert.That(ex.Message, Is.EqualTo("This is a test exception to test our integrations"));
        }
        public void ThrowsTestOpsErrorException()
        {
            var ex = Assert.Throws <TestOpsErrorException>(
                delegate { ThrowOpsErrorUsecase.Execute(); });

            var expected = "This is a test exception to test our integrations";

            ex.Message.Should().BeEquivalentTo(expected);
        }
 public void ThrowError()
 {
     ThrowOpsErrorUsecase.Execute();
 }