Пример #1
0
        public async Task AddNewDataEntryToTestDatabase(int id, double frets, double scale)
        {
            // GIVEN
            await PostData(id, frets, scale);

            calculator.FretAmount  = fretAmount;
            calculator.ScaleLength = scaleLength;

            // WHEN
            //// Method used to fill the "expected" list with values
            List <double> expected = new List <double>(tdata.TestValues());

            //// SUT
            List <double> calculatedFretList = new List <double>(calculator.GenerateFretList());

            // THEN
            Assert.Equal(expected, calculatedFretList);
        }
Пример #2
0
        public async Task CallSpecificTestDataId(int id)
        {
            // GIVEN
            await LoadData(id);

            calculator.FretAmount  = fretAmount;
            calculator.ScaleLength = scaleLength;

            // WHEN
            //// Method used to fill the "expected" list with values
            List <double> expected = new List <double>(tdata.TestValues());

            //// SUT
            List <double> calculatedFretList = new List <double>(calculator.GenerateFretList());

            // THEN
            Assert.Equal(expected, calculatedFretList);
        }