예제 #1
0
        public void GetTests_should_return_correct_json()
        {
            // given + when
            var actionResult = jsonController.GetTests(It.IsAny <string>()) as ContentResult;

            // then
            _testsClient.Verify(x => x.GetTestFile(It.IsAny <string>()), Times.Once);
            Assert.AreEqual("{\"Tests\":[],\"Filename\":null,\"Variables\":[]}", actionResult.Content);
        }