Question: i need help fixing my code. assignment: Using a combination of Boundary Analysis and Equivalence Partitions create the set of test cases to test the
i need help fixing my code. assignment: Using a combination of Boundary Analysis and Equivalence Partitions create the set of test cases to test the function:
bool IsLeapint year
Which test whether the year is a leap year as per the rule of the Gregorian Calendar.
Name your Test Cases TestMethodX where X is a counter starting from
Notes:
Using this will generate a test cases for all the boundaries in each partition and their corresponding for a total of test cases.
Even though you may implement the function to test your code locally, only submit the test cases to the system. code: using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
TestClass
public partial class LeapTesting
Your code starts here
TestMethod
public void TestMethod Assert.IsFalseIsLeap; Not divisible by near boundary
TestMethod
public void TestMethod Assert.IsTrueIsLeap; Divisible by leap year
TestMethod
public void TestMethod Assert.IsFalseIsLeap; Divisible by but not not a leap year
TestMethod
public void TestMethod Assert.IsTrueIsLeap; Divisible by leap year
TestMethod
public void TestMethod Assert.IsFalseIsLeap; from a year not divisible by
TestMethod
public void TestMethod Assert.IsTrueIsLeap; from a leap year not special case
TestMethod
public void TestMethod Assert.IsFalseIsLeap; Just below the leap year divisible by
TestMethod
public void TestMethod Assert.IsTrueIsLeap; Divisible by but not
TestMethod
public void TestMethod Assert.IsFalseIsLeap; Divisible by not a century, leap year
TestMethod
public void TestMethod Assert.IsTrueIsLeap; Just above divisible by not a leap year
TestMethod
public void TestMethod Assert.IsFalseIsLeap; Just below divisible by
TestMethod
public void TestMethod Assert.IsTrueIsLeap; Divisible by leap year
TestMethod
public void TestMethod Assert.IsFalseIsLeap; Divisible by not by not a leap year
TestMethod
public void TestMethod Assert.IsFalseIsLeap; Divisible by leap year recent example
TestMethod
public void TestMethod Assert.IsFalseIsLeap; Just after a leap year
Your code ends here
Feedback
Succeeded points: Passed TestMethod
Succeeded points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed TestMethod
Failed points: Passed zTest
ASSISTANT HINT # for
:
The student's TestMethod is testing a case where the year is divisible by but not by This is an equivalence partition, but the test is not covering the correct boundary. The student should test a year that is divisible by and not by but is not the first year in a new century.
Asistant
ASSISTANT HINT # for
:
Your student's code is missing a test case for a year divisible by but not by They should also check if their implementation is correctly handling such years.
Asistant
ASSISTANT HINT # for
:
Make sure to test all boundary cases and their corresponding values. Check if the test cases cover all possible scenarios.
Asistant
ASSISTANT HINT # for
:
The student's code seems to be missing some test cases. Make sure to include test cases for all the boundaries in each partition and their corresponding for a total of test cases. Also, check if the student's implementation of the IsLeap function is correct.
Asistant
ASSISTANT HINT # for
:
The student's test cases are missing some important boundary cases. Consider the year just below the leap year divisible by and the year just above the year divisible by but not by These cases are not covered in the student's test cases.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
