|
Public Class PassingItem
Implements TestBench.TestBench
Public Function Test(ByVal log As System.Collections.Generic.List(Of String)) As TestBench.TestResult Implements TestBench.TestBench.Test
log.Add("This is a test, one that passes")
Return TestBench.TestResult.Pass
End Function
End Class
Public Class FailingItem
Implements TestBench.TestBench
Public Function Test(ByVal log As System.Collections.Generic.List(Of String)) As TestBench.TestResult Implements TestBench.TestBench.Test
log.Add("Another test, this failed")
Return TestBench.TestResult.Fail
End Function
End Class
Public Class UntestableItem
Public Function Test(ByVal log As System.Collections.Generic.List(Of String)) As TestBench.TestResult
log.Add("This wont get tested, as it doesnt implement the interface")
Return TestBench.TestResult.Pass
End Function
End Class
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Andy is a software developer for a Recruitment Agency in the UK. He specializes in GUI Design, XML, GDI+, Controls & anything else that takes his fancy.
When not coding, he is throwing people around in Judo or reading. Or driving to/from work.
He hopes that his articles might be of help to someone. He likes receiving feedback for his articles (Hint Hint)