示例#1
0
        public void CorrectDiffer_GetDiffer()
        {
            _testContext.Differs.Add(new Differ()
            {
                LeftInput = "left", RightInput = "right"
            });
            _testContext.SaveChanges();
            var result = _sut.GetDiffer(1);

            Assert.That(result, Has.Property("Id").EqualTo(1)
                        & Has.Property("LeftInput").EqualTo("left")
                        & Has.Property("RightInput").EqualTo("right"));
        }