public void TestAddContact() { //Arrange Contact contact = new Contact(); contact.firstName = "Akshay"; contact.lastName = "Poriya"; contact.address = "KZH"; contact.city = "jind"; contact.state = "haryana"; contact.zip = "111111"; contact.phoneNumber = "80941445XX"; contact.email = "*****@*****.**"; contact.contactType = "self"; contact.addressBookName = "owner"; contact.dateAdded = Convert.ToDateTime("1/1/2012"); //Act DBOperations.AddContact(contact); string actual = DBOperations.GetAddress("Akshay", "Poriya"); string expected = "KZH"; //Assert Assert.AreEqual(expected, actual); }