You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TestCase_Automapper_Function.asp 1.0KB

пре 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.