Skip to content

Commit 77b92b6

Browse files
committed
Few small tweaks
1 parent f2eeedf commit 77b92b6

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

TestStack.BDDfy.Tests/Exceptions/NotImplementedException/WhenGivenThrowsNotImplementedException.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using Shouldly;
3-
using TestStack.BDDfy.Processors;
43
using Xunit;
54

65
namespace TestStack.BDDfy.Tests.Exceptions.NotImplementedException
@@ -10,13 +9,13 @@ public class WhenGivenThrowsNotImplementedException : NotImplementedExceptionBas
109
private void ExecuteUsingFluentScanner()
1110
{
1211
var ex = Should.Throw<Exception>(() => Sut.Execute(ThrowingMethods.Given, true));
13-
ex.GetType().FullName.ShouldBe("Gallio.Framework.TestInconclusiveException");
12+
ex.GetType().FullName.ShouldContain("Inconclusive");
1413
}
1514

1615
private void ExecuteUsingReflectingScanners()
1716
{
1817
var ex = Should.Throw<Exception>(() => Sut.Execute(ThrowingMethods.Given, false));
19-
ex.GetType().FullName.ShouldBe("Gallio.Framework.TestInconclusiveException");
18+
ex.GetType().FullName.ShouldContain("Inconclusive");
2019
}
2120

2221
[Fact]

TestStack.BDDfy.Tests/Exceptions/NotImplementedException/WhenThenThrowsNotImplementedException.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using Shouldly;
3-
using TestStack.BDDfy.Processors;
43
using Xunit;
54

65
namespace TestStack.BDDfy.Tests.Exceptions.NotImplementedException
@@ -10,13 +9,13 @@ public class WhenThenThrowsNotImplementedException : NotImplementedExceptionBase
109
private void ExecuteUsingReflectingScanners()
1110
{
1211
var ex = Should.Throw<Exception>(() => Sut.Execute(ThrowingMethods.Then, false));
13-
ex.GetType().FullName.ShouldBe("Gallio.Framework.TestInconclusiveException");
12+
ex.GetType().FullName.ShouldContain("Inconclusive");
1413
}
1514

1615
private void ExecuteUsingFluentScanner()
1716
{
1817
var ex = Should.Throw<Exception>(() => Sut.Execute(ThrowingMethods.Then, true));
19-
ex.GetType().FullName.ShouldBe("Gallio.Framework.TestInconclusiveException");
18+
ex.GetType().FullName.ShouldContain("Inconclusive");
2019
}
2120

2221
[Fact]

TestStack.BDDfy.Tests/Exceptions/NotImplementedException/WhenWhenThrowsNotImplementedException.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using Shouldly;
3-
using TestStack.BDDfy.Processors;
43
using Xunit;
54

65
namespace TestStack.BDDfy.Tests.Exceptions.NotImplementedException
@@ -10,13 +9,13 @@ public class WhenWhenThrowsNotImplementedException : NotImplementedExceptionBase
109
private void ExecuteUsingReflectingScanners()
1110
{
1211
var ex = Should.Throw<Exception>(() => Sut.Execute(ThrowingMethods.When, false));
13-
ex.GetType().FullName.ShouldBe("Gallio.Framework.TestInconclusiveException");
12+
ex.GetType().FullName.ShouldContain("Inconclusive");
1413
}
1514

1615
private void ExecuteUsingFluentScanner()
1716
{
1817
var ex = Should.Throw<Exception>(() => Sut.Execute(ThrowingMethods.When, true));
19-
ex.GetType().FullName.ShouldBe("Gallio.Framework.TestInconclusiveException");
18+
ex.GetType().FullName.ShouldContain("Inconclusive");
2019
}
2120

2221
[Fact]

0 commit comments

Comments
 (0)