예제 #1
0
 static void Main(string[] args)
 {
     Console.WriteLine("Here is the main to run practices in C#");
     Chapter3.pratice1();
     Chapter3.pratice3();
     Console.ReadKey();
 }
예제 #2
0
            public void Should_ReturnNone_When_InputIsIncorrect(string valueToParse, string expectedResult)
            {
                var result = Chapter3.Parse <TestEnum>(valueToParse);

                var resultString = result.Match(() => InvalidValue, value => value.ToString());

                resultString.Should().Be(expectedResult);
            }
예제 #3
0
 void Update()
 {
     if (PlayerController.Level1)
     {
         Chapter1.SetActive(true);
     }
     else
     {
         Chapter1.SetActive(false);
     }
     if (PlayerController.Level2)
     {
         Chapter2.SetActive(true);
     }
     else
     {
         Chapter2.SetActive(false);
     }
     if (PlayerController.Level3)
     {
         Chapter3.SetActive(true);
     }
     else
     {
         Chapter3.SetActive(false);
     }
     if (PlayerController.Level4)
     {
         Chapter4.SetActive(true);
     }
     else
     {
         Chapter4.SetActive(false);
     }
     if (PlayerController.Level5)
     {
         Chapter5.SetActive(true);
     }
     else
     {
         Chapter5.SetActive(false);
     }
     if (PlayerController.Level6)
     {
         Chapter6.SetActive(true);
     }
     else
     {
         Chapter6.SetActive(false);
     }
 }
예제 #4
0
 static void Chap3()
 {
     Chapter3 chapter3 = new Chapter3();
 }
예제 #5
0
 public Chapter3Tests()
 {
     _testHelper = new Chapter3();
 }