static void Main(string[] args)
        {
            EqualityScale <int> scale = new EqualityScale <int>(5, 8);
            bool res = scale.AreEqual();

            Console.WriteLine(res);
        }
        static void Main(string[] args)
        {
            var scale = new EqualityScale <int>(5, 6);

            Console.WriteLine(scale.AreEqual());
            scale.WhichIsHeavier();
        }
Example #3
0
        public static void Main(string[] args)
        {
            string firstStr  = "aaa";
            string secondStr = "AAA";
            EqualityScale <string> equality = new EqualityScale <string>(firstStr, secondStr);

            Console.WriteLine(equality.AreEqual());

            int firstNum  = 12;
            int secondNum = 12;
            EqualityScale <int> equalityScale = new EqualityScale <int>(firstNum, secondNum);

            Console.WriteLine(equalityScale.AreEqual());

            char firstChar             = 's';
            char secondChar            = 's';
            EqualityScale <char> scale = new EqualityScale <char>(firstChar, secondChar);

            Console.WriteLine(scale.AreEqual());

            double firstDouble  = 5.90;
            double secondDouble = 0.90;
            EqualityScale <double> equalityDouble = new EqualityScale <double>(firstDouble, secondDouble);

            Console.WriteLine(equalityDouble.AreEqual());
        }
Example #4
0
        static void Main(string[] args)
        {
            EqualityScale <string> scale = new EqualityScale <string>("pesho", "pesho");

            bool result = scale.AreEqual();

            Console.WriteLine(result);
        }
        public static void Main(string[] args)
        {
            var scale = new EqualityScale <int>(8, 8);

            Console.WriteLine(scale.AreEqual());

            scale.IsHavier();
        }
Example #6
0
        static void Main(string[] args)
        {
            var scale  = new EqualityScale <int>(5, 6);
            var scale1 = new EqualityScale <int>(5, 5);

            Console.WriteLine(scale.AreEqual());
            Console.WriteLine(scale1.AreEqual());
        }
Example #7
0
        static void Main(string[] args)
        {
            var intEqu  = new EqualityScale <string>("gg", "gg");
            var intEqu2 = new EqualityScale <int>(1, 5);

            Console.WriteLine(intEqu.AreEqual());
            Console.WriteLine(intEqu2.AreEqual());
        }
Example #8
0
        static void Main(string[] args)
        {
            var a = "5";
            var b = "5";

            var equalityScales = new EqualityScale <string>(a, b);

            Console.WriteLine(equalityScales.isEqual);
        }
        public static void Main(string[] args)
        {
            string firstString  = "Pesho";
            string secondString = "Gosho";

            EqualityScale <string> checkEquality = new EqualityScale <string>(firstString, secondString);

            Console.WriteLine(checkEquality.AreEqual());
        }
Example #10
0
        public static void Main()
        {
            var leftItem  = 5;
            var rightItem = 5;

            var scale = new EqualityScale <int>(leftItem, rightItem);

            Console.WriteLine(scale.AreEqual());
        }
Example #11
0
        static void Main(string[] args)
        {
            int left  = 5;
            int right = 5;

            EqualityScale <int> newScale = new EqualityScale <int>(left, right);

            Console.WriteLine(newScale.AreEqual());
        }
        static void Main(string[] args)
        {
            var result1 = new EqualityScale <int>(4, 5);

            Console.WriteLine(result1.AreEquals());

            var result2 = new EqualityScale <string>("sun", "sun");

            Console.WriteLine(result2.AreEquals());
        }
Example #13
0
        static void Main(string[] args)
        {
            var scale = new EqualityScale <int>(3, 3);

            Console.WriteLine(scale.AreEqual());

            var scaleTwo = new EqualityScale <string>("Pesho", "Pesho");

            Console.WriteLine(scaleTwo.AreEqual());
        }
        public static void Main()
        {
            var test = new EqualityScale <int>(5, 5);

            Console.WriteLine(test.AreEqual());

            var other = new EqualityScale <int>(5, 10);

            Console.WriteLine(other.AreEqual());
        }
Example #15
0
        static void Main(string[] args)
        {
            EqualityScale <int> scale = new EqualityScale <int>(5, 5);

            EqualityScale <int> scaleTwoPointO = new EqualityScale <int>(5, 6);

            Console.WriteLine(scale.AreEqual());

            Console.WriteLine(scaleTwoPointO.AreEqual());
        }
Example #16
0
        public static void Main()
        {
            var scale1 = new EqualityScale <int>(7, 8);

            Console.WriteLine(scale1.AreEqual());

            var scale2 = new EqualityScale <int>(8, 8);

            Console.WriteLine(scale2.AreEqual());
        }
Example #17
0
        public static void Main()
        {
            var scale1 = new EqualityScale <int>(5, 10);

            Console.WriteLine(scale1.GetHeavier());

            var scale2 = new EqualityScale <string>("Man", "Woman");

            Console.WriteLine(scale2.GetHeavier());
        }
Example #18
0
        static void Main(string[] args)
        {
            var resultInt    = new EqualityScale <int>(4, 4);
            var resultString = new EqualityScale <string>("Test", "Test");
            var resultDouble = new EqualityScale <double>(2.2, 3.3);

            Console.WriteLine(resultInt.AreEqual());
            Console.WriteLine(resultString.AreEqual());
            Console.WriteLine(resultDouble.AreEqual());
        }
Example #19
0
        static void Main(string[] args)
        {
            EqualityScale <int> intInput = new EqualityScale <int>(5, 5);

            Console.WriteLine(intInput.AreEqual());


            EqualityScale <string> strInput = new EqualityScale <string>("ASD", "ASS");

            Console.WriteLine(strInput.AreEqual());
        }
Example #20
0
        static void Main(string[] args)
        {
            //int a = 4;
            //int b = 4;

            string a = "anatoli";
            string b = "anatoli";
            EqualityScale <string> numbers = new EqualityScale <string>(a, b);

            Console.WriteLine(numbers.AreEqual());
        }
Example #21
0
        static void Main(string[] args)
        {
            EqualityScale <int>    scale  = new EqualityScale <int>(2, 6);
            EqualityScale <int>    scale1 = new EqualityScale <int>(2, 2);
            EqualityScale <string> scale3 = new EqualityScale <string>("Ivan", "Ivan");
            EqualityScale <string> scale4 = new EqualityScale <string>("Ivan", "Ivana");

            Console.WriteLine(scale.AreEqual());
            Console.WriteLine(scale1.AreEqual());
            Console.WriteLine(scale3.AreEqual());
            Console.WriteLine(scale4.AreEqual());
        }
Example #22
0
        static void Main(string[] args)
        {
            //string[] left = new string[3] { "Ivan", "Kiril", "Alex" };
            //string[] left = new string[4] { "Ivan", "Kiril", "Alex", "Sophia" };
            //string[] right = new string[4] { "Ivan", "Kiril", "Alex", "Sophia" };

            EqualityScale <int> scale = new EqualityScale <int>(5, 6);

            //EqualityScale<int[]> scale = new EqualityScale<int[]>(new int[]{ 1, 2, 5}, new int[]{1, 2, 5 });

            Console.WriteLine(scale.AreEqual());
        }
        static void Main(string[] args)
        {
            EqualityScale <int> scale = new EqualityScale <int>(4, 5);

            Console.WriteLine(scale.AreEqual());

            EqualityScale <string> scale2 = new EqualityScale <string>("Momchil", "Hristo");

            Console.WriteLine(scale2.AreEqual());

            EqualityScale <bool> scale3 = new EqualityScale <bool>(2 == 2, 3 == 3);

            Console.WriteLine(scale3.AreEqual());
        }
Example #24
0
        public static void Main()
        {
            string left  = "Ana";
            string right = "Anna";
            EqualityScale <string> scale = new EqualityScale <string>(left, right);

            Console.WriteLine(scale.AreEqual());

            int leftNum  = 5;
            int rightNum = 05;
            EqualityScale <int> numScale = new EqualityScale <int>(leftNum, rightNum);

            Console.WriteLine(numScale.AreEqual());
        }
Example #25
0
        static void Main(string[] args)
        {
            var scale1 = new EqualityScale <int>(5, 10);

            Console.WriteLine(scale1.AreEqual());

            var scale2 = new EqualityScale <string>("Man", "Woman");

            Console.WriteLine(scale2.AreEqual());

            var scale3 = new EqualityScale <string>("Man", "Man");

            Console.WriteLine(scale3.AreEqual());
        }
Example #26
0
        public static void Main(string[] args)
        {
            string leftElement  = "Pesho";
            string rightElement = "Gosho";

            EqualityScale <string> scaleString = new EqualityScale <string>(leftElement, rightElement);

            Console.WriteLine(scaleString.AreEqual());

            int leftInteger  = 5;
            int rightInteger = 5;

            EqualityScale <int> scaleInteger = new EqualityScale <int>(leftInteger, rightInteger);

            Console.WriteLine(scaleInteger.AreEqual());
        }
Example #27
0
        static void Main(string[] args)
        {
            int left  = 3;
            int right = 6;

            EqualityScale <int> equalScale = new EqualityScale <int>(left, right);

            if (equalScale.AreEqual())
            {
                Console.WriteLine("Equal");
            }
            else
            {
                Console.WriteLine("Not equal");
            }
        }
        static void Main(string[] args)
        {
            int left  = 1;
            int right = 2;

            EqualityScale <int> equalityScale = new EqualityScale <int>(left, right);

            Console.WriteLine(equalityScale.AreEqual()); // false

            int leftTwo  = 5;
            int rightTwo = 5;

            EqualityScale <int> eqs2 = new EqualityScale <int>(leftTwo, rightTwo);

            Console.WriteLine(eqs2.AreEqual()); // true
        }
Example #29
0
        public static void Main(string[] args)
        {
            var    currentScale = new EqualityScale <string>("15", "15");
            string result       = currentScale.AreEqual();

            PrintResult(result);

            var    secondScale  = new EqualityScale <string>("Maria", "Gergana");
            string secondResult = secondScale.AreEqual();

            PrintResult(secondResult);

            var    thirdScale  = new EqualityScale <int>(25, 25);
            string thirdResult = thirdScale.AreEqual();

            PrintResult(thirdResult);
        }
Example #30
0
        static void Main(string[] args)
        {
            //int left = int.Parse(Console.ReadLine());
            //int right = int.Parse(Console.ReadLine());

            //string left = Console.ReadLine();
            //string right = Console.ReadLine();

            string[] left = new string[3] {
                "Ivan", "Kiril", "Alex"
            };
            //string[] left = new string[4] { "Ivan", "Kiril", "Alex", "Sophia" };
            string[] right = new string[4] {
                "Ivan", "Kiril", "Alex", "Sophia"
            };

            bool isEquality = EqualityScale.AreEqual(left, right);



            Console.WriteLine(isEquality);
        }