public void CreateInstanceAndCheckUserInputParameter() { var pair = new InputResponsePair(new UserInput("hello"), new List <Response> { new Response("hello") }); Assert.IsTrue(new UserInput("hello").Equals(pair.Input)); }
public void CreateInstanceAndCheckResponsesParameter() { var pair = new InputResponsePair(new UserInput("hello"), new List <Response> { new Response("hello") }); CollectionAssert.AreEqual(new List <Response> { new Response("hello") }, pair.Responses); }
public void EqualsWithNotSomeParameters() { var firstPair = new InputResponsePair(new UserInput("hello"), new List <Response> { new Response("hello") }); var secondPair = new InputResponsePair(new UserInput("hello1234"), new List <Response> { new Response("hello1234") }); Assert.IsFalse(firstPair.Equals(secondPair)); }