Created
March 31, 2018 10:56
-
-
Save NMZivkovic/de78c0f6c94db1da052e912724dd947d 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; | |
using ClientServiceExample; | |
namespace ClientServiceTest | |
{ | |
public class ClientServiceTest | |
{ | |
[Fact] | |
public void InitiateServiceMethod_NoConditions_Success() | |
{ | |
var serviceMock = new Mock<IService>(); | |
var client = new Client(serviceMock.Object); | |
client.InitiateServiceMethod(); | |
serviceMock.Verify(x => x.ServiceMethod()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment