示例#1
0
        public void SpTestSprocActorShowAllWhenAllIsTestName()
        {
            // Arrange
             var prereq = new SpTestSprocArranger(_objectTest);

             // Act
             var result = prereq.Execute<List<SpTestSprocReturn>>("all");

             // Assert
             Assert.AreEqual(3, result.Count);
        }
示例#2
0
        public void SpTestSprocActorWhereStartsWithFoo()
        {
            // Arrange
             var arranger = new SpTestSprocArranger(new SpFooTestSprocArranger(_objectTest));

             // Act
             var result = arranger.Execute<List<SpTestSprocReturn>>("foofoo");

             // Assert
             Assert.AreEqual(1, result.Count);
             Assert.AreEqual("StaticVar", result[0].Name);
        }
示例#3
0
        public void SpTestSprocActorShowOnlyWhereTestNamePassedIn()
        {
            // Arrange
             var prereq = new SpTestSprocArranger(_objectTest);

             // Act
             var result = prereq.Execute<List<SpTestSprocReturn>>("Test1");

             // Assert
             Assert.AreEqual(1, result.Count);
             Assert.AreEqual("Test1", result[0].Name);
        }