Created
February 11, 2012 17:50
-
-
Save cadwallion/1803169 to your computer and use it in GitHub Desktop.
Tests pregenned by VS2010
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using System; | |
namespace TestProject1 | |
{ | |
/// <summary> | |
///This is a test class for AddressBookTest and is intended | |
///to contain all AddressBookTest Unit Tests | |
///</summary> | |
[TestClass()] | |
public class AddressBookTest { | |
private TestContext testContextInstance; | |
/// <summary> | |
///Gets or sets the test context which provides | |
///information about and functionality for the current test run. | |
///</summary> | |
public TestContext TestContext { | |
get { | |
return testContextInstance; | |
} | |
set { | |
testContextInstance = value; | |
} | |
} | |
#region Additional test attributes | |
// | |
//You can use the following additional attributes as you write your tests: | |
// | |
//Use ClassInitialize to run code before running the first test in the class | |
//[ClassInitialize()] | |
//public static void MyClassInitialize(TestContext testContext) | |
//{ | |
//} | |
// | |
//Use ClassCleanup to run code after all tests in a class have run | |
//[ClassCleanup()] | |
//public static void MyClassCleanup() | |
//{ | |
//} | |
// | |
//Use TestInitialize to run code before running each test | |
//[TestInitialize()] | |
//public void MyTestInitialize() | |
//{ | |
//} | |
// | |
//Use TestCleanup to run code after each test has run | |
//[TestCleanup()] | |
//public void MyTestCleanup() | |
//{ | |
//} | |
// | |
#endregion | |
/// <summary> | |
///A test for add | |
///</summary> | |
[TestMethod()] | |
public void addTest() { | |
AddressBook target = new AddressBook(); // TODO: Initialize to an appropriate value | |
string name = string.Empty; // TODO: Initialize to an appropriate value | |
string address = string.Empty; // TODO: Initialize to an appropriate value | |
bool expected = false; // TODO: Initialize to an appropriate value | |
bool actual; | |
actual = target.add(name, address); | |
Assert.AreEqual(expected, actual); | |
Assert.Inconclusive("Verify the correctness of this test method."); | |
} | |
/// <summary> | |
///A test for find | |
///</summary> | |
[TestMethod()] | |
public void findTest() { | |
AddressBook target = new AddressBook(); // TODO: Initialize to an appropriate value | |
string name = string.Empty; // TODO: Initialize to an appropriate value | |
Address expected = null; // TODO: Initialize to an appropriate value | |
Address actual; | |
actual = target.find(name); | |
Assert.AreEqual(expected, actual); | |
Assert.Inconclusive("Verify the correctness of this test method."); | |
} | |
/// <summary> | |
///A test for remove | |
///</summary> | |
[TestMethod()] | |
public void removeTest() { | |
AddressBook target = new AddressBook(); // TODO: Initialize to an appropriate value | |
string name = string.Empty; // TODO: Initialize to an appropriate value | |
bool expected = false; // TODO: Initialize to an appropriate value | |
bool actual; | |
actual = target.remove(name); | |
Assert.AreEqual(expected, actual); | |
Assert.Inconclusive("Verify the correctness of this test method."); | |
} | |
/// <summary> | |
///A test for isEmpty | |
///</summary> | |
[TestMethod()] | |
public void isEmptyTest() { | |
AddressBook target = new AddressBook(); // TODO: Initialize to an appropriate value | |
bool expected = false; // TODO: Initialize to an appropriate value | |
bool actual; | |
actual = target.isEmpty(); | |
Assert.AreEqual(expected, actual); | |
Assert.Inconclusive("Verify the correctness of this test method."); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment