-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathExercise002Tests.cs
60 lines (49 loc) · 1.82 KB
/
Exercise002Tests.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
49
50
51
52
53
54
55
56
57
58
59
60
using NUnit.Framework;
using FluentAssertions;
using Exercises.Models;
namespace Exercises.Tests
{
public class Exercise002Tests
{
private Exercise002 Exercise002;
[SetUp]
public void Setup()
{
Exercise002 = new Exercise002();
}
[Test]
public void IsFromManchester_Should_Return_True_If_Person_Is_From_Manchester()
{
// Please uncomment the code below to run your test
//Person p1 = new Person("Peter", "Smith", "Manchester", 23);
//Exercise002.IsFromManchester(p1).Should().Be(true);
}
[Test]
public void IsFromManchester_Should_Return_False_If_Person_Is_Not_From_Manchester()
{
// Please uncomment the code below to run your test
//Person p2 = new Person("Susan", "Farmer", "Leeds", 23);
//Exercise002.IsFromManchester(p2).Should().Be(false);
}
[Test]
public void IsFromManchester_Should_Return_False_If_Person_Is_Null()
{
// Please uncomment the code below to run your test
// Exercise002.IsFromManchester(null).Should().Be(false);
}
[Test]
public void CanWatchFilm_Should_Return_False_If_Age_Is_Below_The_Age_Limit()
{
// Please uncomment the code below to run your test
//Person p1 = new Person("Peter", "Smith", "Manchester", 17);
//Exercise002.CanWatchFilm(p1, 18).Should().Be(false);
}
[Test]
public void CanWatchFilm_Should_Return_True_If_Age_Is_EqualTo_Or_Above_The_Age_Limit()
{
// Please uncomment the code below to run your test
//Person p2 = new Person("Susan", "Farmer", "Leeds", 18);
//Exercise002.CanWatchFilm(p2, 15).Should().Be(true);
}
}
}