示例#1
0
 public void Frame_10_1_9_Should_Have_Sum_20()
 {
     var frame = new Frame(10);
     frame.AddUnlessComplete(1);
     frame.AddUnlessComplete(9);
     Assert.That(frame.Sum, Is.EqualTo(20));
 }
示例#2
0
 public void Frame_10_1_9_Should_Be_Complete_Strike()
 {
     var frame = new Frame(10);
     frame.AddUnlessComplete(1);
     frame.AddUnlessComplete(9);
     Assert.That(frame.CompleteStrike, Is.True);
 }
示例#3
0
 public void Frame_1_1_Should_Be_Full()
 {
     var frame = new Frame(1);
     frame.AddUnlessComplete(1);
     Assert.That(frame.Complete, Is.True);
 }
示例#4
0
 public void Frame_10_10_Should_Not_Be_Complete()
 {
     var frame = new Frame(10);
     frame.AddUnlessComplete(10);
     Assert.That(frame.Complete, Is.False);
 }
示例#5
0
 public void Frame_1_9_4_Should_Have_Sum_14()
 {
     var frame = new Frame(1);
     frame.AddUnlessComplete(9);
     frame.AddUnlessComplete(4);
     Assert.That(frame.Sum, Is.EqualTo(14));
 }
示例#6
0
 public void Frame_1_1_Should_Not_Be_Strike()
 {
     var frame = new Frame(1);
     frame.AddUnlessComplete(1);
     Assert.That(frame.Strike, Is.False);
 }
示例#7
0
 public void Frame_1_1_Should_Have_Score_2()
 {
     var frame = new Frame(1);
     frame.AddUnlessComplete(1);
     Assert.That(frame.Sum, Is.EqualTo(2));
 }