Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

8 месяцев назад
123456789101112131415161718192021222324
  1. <%
  2. '=======================================================================================================================
  3. ' Automapper Function Test Cases
  4. '=======================================================================================================================
  5. Class Automapper_Function_Tests
  6. Public Sub Setup : End Sub
  7. Public Sub Teardown : End Sub
  8. Public Function TestCaseNames
  9. TestCaseNames = Array("Test_Automap_Function_Returns_Instance", "Test_Automap_Function_Returns_New_Instance")
  10. End Function
  11. Public Sub Test_Automap_Function_Returns_Instance(T)
  12. T.AssertEquals "Automapper_Class", typename(Automapper()), "Function Automapper() should return a new instance of Automapper_Class"
  13. End Sub
  14. Public Sub Test_Automap_Function_Returns_New_Instance(T)
  15. dim a : set a = Automapper()
  16. dim b : set b = Automapper()
  17. T.AssertFalse (a is b), "Automapper() function should return distinct instances of the Automapper_Class"
  18. End Sub
  19. End Class
  20. %>

Powered by TurnKey Linux.