Exemplo n.º 1
0
        public void CalculateParcent_GiveMaxPointsAndPoints_ReturnCalculateParcent()
        {
            //Arrange
            int           maxPoints     = 100;
            int           points        = 70;
            RaportService raportService = new RaportService();

            //Act
            var result =
                raportService.CheckHowManyParcent(maxPoints, points);

            //Assert
            Assert.AreEqual(70, result);
        }
Exemplo n.º 2
0
        public void WhenCheckingIfParcentIsLower_GiveParcentAndThreshold_ReturnLower()
        {
            //Arrange
            string        lower         = "niezaliczone";
            int           parcent       = 60;
            int           threshold     = 70;
            RaportService raportService = new RaportService();

            //Act
            var result =
                raportService.CheckIfResultsIsHigherThanThreshold(parcent, threshold);

            //Assert
            Assert.AreSame(lower, result);
        }