我们是否有任何推荐的VB.Net共享文件模板

时间:2020-03-05 18:43:10  来源:igfitidea点击:

那些能使生活变得有用的人。

解决方案

回答

这是带有Nunit支持的testClass的一个。

Imports Nunit.FrameWork

    Namespace $NAMESPACE$
    ''' 
    ''' A TestClass
    ''' 
    ''' 
     _
    Public Class $CLASSNAME$

#Region " Setup and TearDown "
        ''' 
        ''' Sets up the Tests
        ''' 
        ''' 
         _
        Public Sub Setup()

            End Sub

        ''' 
        ''' Tears down the test. Is executed after the Test is Completed
        ''' 
        ''' 
         _
        Public Sub TearDown()

        End Sub      
#End Region  

#Region " Tests "
                ''' 
        ''' A Test
        ''' 
        ''' 
             _
            Public Sub $Test_Name$()

            End Sub
#End Region

    End Class
End Namespace