Beispiel #1
0
        public async Task AddTestTask(string val1, string val2)
        {
            using (StreamWriter w = File.AppendText("log.txt"))
            {
                Log("addTest" + "Values:" + val1 + ";" + val2, w);
            }
            // Arrange

            ValuesController controller = new ValuesController();
            Values           values     = new Values()
            {
                Val1 = val1, Val2 = val2
            };

            // Act
            var result = controller.AddTask(values);

            // Assert
            Assert.NotNull(values);
            Assert.NotNull(result);
            Assert.IsType <Values>(values);
            Assert.IsType <ValuesController>(controller);
        }