Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jfoshee/testdrivendesign
Augments Microsoft's Visual Studio unit testing framework and helps out with TDD
https://github.com/jfoshee/testdrivendesign
Last synced: about 2 months ago
JSON representation
Augments Microsoft's Visual Studio unit testing framework and helps out with TDD
- Host: GitHub
- URL: https://github.com/jfoshee/testdrivendesign
- Owner: jfoshee
- License: other
- Created: 2011-06-16T23:27:05.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-02-06T23:21:49.000Z (almost 13 years ago)
- Last Synced: 2024-08-30T07:41:17.427Z (4 months ago)
- Language: C#
- Homepage: http://nuget.org/packages/TestDrivenDesign
- Size: 1.32 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
- License: LICENSE.txt
Awesome Lists containing this project
README
C# Test Driven Design
=====================Here is a quick reference of the classes and members available
- TestBase
- TestContext
- TestPath()
- TextPath()
- TestDirectory()
- DataValueAsInt(name)
- DataValueAsFloat(name)
- DataValueAsString(name)
- DataValueAsBool(name)
- TestBase< T >
- Subject
- Get(propertyExpression)
- Set(propertyExpression, value)
- MockSubject(), Verify(expression)
- DirectoryAssert
- Exists(directory)
- DoesNotExist(directory)
- Contains(directory, searchPattern)
- DoesNotContain(directory, searchPattern)
- IsEmpty(directory)
- Count(directory, expected)
- Count(directory, searchPattern, expected)
- TextFileAssert
- Exists(path)
- AreEqual(expectedPath, actualPath)
- Contains(path, expected)
- ContainsLine(path, expected)
- StartsWith(path, expected)
- EndsWith(path, expected)
- BinaryFileAssert
- Exists(path)
- AreEqual(expectedPath, actualPath)
- StartsWith(path, expected)
- BytesAt(path, byteIndex, expected)
- [ StartsWith() or BytesAt() ].FollowedBy(expected)Inheriting from the TestBase class will provide a TestContext property.
The TestContext property is useful for tests involving file I/O and for finding information about the current test run.
See http://msdn.microsoft.com/en-us/library/ms404699.aspx[TestClass]
public class MyExampleTest : TestBaseInheriting from the typed TestBase class will provide a test Subject.
[TestClass]
public class MyExampleTest : TestBaseKeywords: TDD, Unit Testing, Test Driven Development, Test Driven Design