Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
xUnit2/FakeItEasy issue
public class TestFixture1 {
[Fact]
public async Task FactMethodName1() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName2() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName3() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName4() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName5() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName6() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName7() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName8() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName9() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName10() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName11() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName12() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input{Test = "test"});
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
}
public class TestFixture2 {
[Fact]
public async Task FactMethodName1() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName2() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName3() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName4() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName5() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName6() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName7() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName8() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName9() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName10() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName11() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName12() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
}
public class TestFixture3 {
[Fact]
public async Task FactMethodName1() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName2() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName3() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName4() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName5() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName6() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName7() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName8() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName9() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName10() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName11() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
[Fact]
public async Task FactMethodName12() {
var sut = A.Fake<IAsyncClass>();
await sut.GetAsync(new Input { Test = "test" });
A.CallTo(() => sut.GetAsync(A<Input>.That.Matches(_ => _.Test == "test"))).MustHaveHappened();
}
}
public interface IAsyncClass {
Task GetAsync(Input input);
}
public class Input {
public string Test { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.