Created
April 7, 2018 08:37
-
-
Save NMZivkovic/7886d33ecbf9c1e66e7df13132f1db02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Moq; | |
using Xunit; | |
namespace ClientServiceExample | |
{ | |
public class ClientTest | |
{ | |
[Fact] | |
public void InitiateServiceMethod_NoConditions_ProperMethodsCalled() | |
{ | |
var serviceMock = new Mock<IService>(); | |
var client = new Client(); | |
client.InitiateServiceMethod(serviceMock.Object); | |
serviceMock.Verify(x => x.ServiceMethod()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment