static void Main(string[] args) { Console.WriteLine("Here is the main to run practices in C#"); Chapter3.pratice1(); Chapter3.pratice3(); Console.ReadKey(); }
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); }
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); } }
static void Chap3() { Chapter3 chapter3 = new Chapter3(); }
public Chapter3Tests() { _testHelper = new Chapter3(); }