Пример #1
0
 public void Closer(int a, int b, int expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     int closer_result = x.Closer(a, b);
     //assert
     Assert.AreEqual(closer_result, expected);
 }
Пример #2
0
 public void EveryNth(string str, int n, string expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     string everynth_result = x.EveryNth(str, n);
     //assert
     Assert.AreEqual(everynth_result, expected);
 }
Пример #3
0
 public void Between10and20(int a, int b, bool expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool between10and20_result = x.Between10and20(a, b);
     //assert
     Assert.AreEqual(between10and20_result, expected);
 }
Пример #4
0
 public void BackAround(string str, string expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     string backaround_result = x.BackAround(str);
     //assert
     Assert.AreEqual(backaround_result, expected);
 }
Пример #5
0
 public void EndUp(string str, string expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     string endup_result = x.EndUp(str);
     //assert
     Assert.AreEqual(endup_result, expected);
 }
Пример #6
0
 public void return_NearHundred(int n, bool b)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool near100_result = x.NearHundred(n);
     //assert
     Assert.AreEqual(b, near100_result);
 }
Пример #7
0
 public void return_Makes10(int a, int b, bool c)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool makes10_result = x.Makes10(a, b);
     //assert
     Assert.AreEqual(c, makes10_result);
 }
Пример #8
0
 public void HasTeen(int a, int b, int c, bool expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool hasteen_result = x.HasTeen(a, b, c);
     //assert
     Assert.AreEqual(hasteen_result, expected);
 }
Пример #9
0
 public void StartHi(string str, bool expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool starthi_result = x.StartHi(str);
     //assert
     Assert.AreEqual(starthi_result, expected);
 }
Пример #10
0
 public void NotString(string s, string expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     string notstring_result = x.NotString(s);
     //assert
     Assert.AreEqual(expected, notstring_result);
 }
Пример #11
0
 public void Multiple3or5(int number, bool expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool multiple3or5_result = x.Multiple3or5(number);
     //assert
     Assert.AreEqual(multiple3or5_result, expected);
 }
Пример #12
0
 public void MissingChar(string str, int n, string expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     string missingchar_result = x.MissingChar(str, n);
     //assert
     Assert.AreEqual(missingchar_result, expected);
 }
Пример #13
0
 public void Max(int a, int b, int c, int expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     int max_result = x.Max(a, b, c);
     //assert
     Assert.AreEqual(max_result, expected);
 }
Пример #14
0
 public void IxStart(string str, bool expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool ixstart_result = x.IxStart(str);
     //assert
     Assert.AreEqual(ixstart_result, expected);
 }
Пример #15
0
 public void IcyHot(int temp1, int temp2, bool expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool icyhot_result = x.IcyHot(temp1, temp2);
     //assert
     Assert.AreEqual(icyhot_result, expected);
 }
Пример #16
0
 public void return_ParrotTrouble(bool a, int b, bool c)
 {
     // arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     // act
     bool parrot_result = x.ParrotTrouble(a, b);
     //assert
     Assert.AreEqual(c, parrot_result);
 }
Пример #17
0
 public void return_SumDouble(int a, int b, int c)
 {
     // arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     // act
     int sum_result = x.SumDouble(a, b);
     // assert
     Assert.AreEqual(c, sum_result);
 }
Пример #18
0
 public void PosNeg(int a, int b, bool negative, bool expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool posneg_result = x.PosNeg(a, b, negative);
     //assert
     Assert.AreEqual(expected, posneg_result);
 }
Пример #19
0
 public void SoAlone(int a, int b, bool expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool soalone_result = x.SoAlone(a, b);
     //assert
     Assert.AreEqual(soalone_result, expected);
 }
Пример #20
0
 public void RemoveDel(string str, string expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     string removedel_result = x.RemoveDel(str);
     //assert
     Assert.AreEqual(removedel_result, expected);
 }
Пример #21
0
 public void StartOz(string str, string expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     string startoz_result = x.StartOz(str);
     //assert
     Assert.AreEqual(startoz_result, expected);
 }
Пример #22
0
 public void return_AreWeInTrouble(bool a, bool b, bool result)
 {
     // arrange
     ConditionalWarmUps hello = new ConditionalWarmUps();
     // act
     bool Actual = hello.AreWeInTrouble(a, b);
     // assert
     Assert.AreEqual(result, Actual);
 }
Пример #23
0
 public void return_CanSleepIn(bool a, bool b, bool c)
 {
     // arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     // act
     bool can_result = x.CanSleepIn(a, b);
     // assert
     Assert.AreEqual(c, can_result);
 }
Пример #24
0
 public void return_Diff21(int a, int b)
 {
     // arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     // act
     int diff_result = x.Diff21(a);
     // assert
     Assert.AreEqual(b, diff_result);
 }
Пример #25
0
 public void FrontBack(string str, string expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     string frontback_result = x.FrontBack(str);
     //assert
     Assert.AreEqual(frontback_result, expected);
 }
Пример #26
0
 public void GotE(string str, bool expected)
 {
     //arrange
     ConditionalWarmUps x = new ConditionalWarmUps();
     //act
     bool gote_result = x.GotE(str);
     //assert
     Assert.AreEqual(gote_result, expected);
 }