-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomerInfoTest.cs
48 lines (43 loc) · 1.36 KB
/
CustomerInfoTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace EmailGenerator
{
[TestFixture]
class CustomerInfoTest
{
[Test]
public void CustomerInfoContainFirstName()
{
CustomerInfo customer = new CustomerInfo("Test");
Assert.AreEqual("Test",customer.CustomerFirstName());
}
[Test]
public void CustomerInfoContainEMail()
{
CustomerInfo customer = new CustomerInfo(email:"jonny561201@hotmail.com");
Assert.AreEqual("jonny561201@hotmail.com", customer.CustomerEmail());
}
[Test]
public void CustomerInfoContainsLastName()
{
CustomerInfo customer = new CustomerInfo(lastName:"LastName");
Assert.AreEqual("LastName", customer.CustomerLastName());
}
[Test]
public void CustomerInfoContainsAddress()
{
CustomerInfo customer = new CustomerInfo(address:"123 Fake St.");
Assert.AreEqual("123 Fake St.", customer.CustomerAddress());
}
[Test]
public void CustomerInfoContainsPhoneNumber()
{
CustomerInfo customer = new CustomerInfo(phone:"5555153650");
Assert.AreEqual("5555153650",customer.CustomerPhone());
}
}
}