Inheritance: MonoBehaviour
Beispiel #1
0
        static async Task Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            var chapter01 = new Chapter01();

            chapter01.Deadlock();
            Console.WriteLine("After deadlock");
        }
Beispiel #2
0
        public void PermutationTest()
        {
            var outputs = new List <string>();

            Chapter01.Permutation(new List <int> {
                1, 2, 3, 4, 5
            }, 0, outputs);
        }
Beispiel #3
0
        public void RotateArray()
        {
            var array = new List <int> {
                10, 20, 30, 40, 50, 60
            };

            Chapter01.RotateArray(array, 2);
            Assert.AreEqual(new List <int> {
                30, 40, 50, 60, 10, 20
            }, array);
        }
Beispiel #4
0
        public Form1()
        {
            InitializeComponent();

            _chapter01 = new Chapter01();
        }
Beispiel #5
0
        public void IsUniqueTest()
        {
            var result = Chapter01.IsUnique("absdskdbddkssdks");

            Assert.IsFalse(result);
        }