title: Problem with creating ToString() method for the 2 unit tests
body: <p>I have to create ToString method for two unit test.
  My code</p>
  <pre><code>        public override string ToString()
          {
              if (this.Hours &gt; 9 &amp;&amp; this.Minutes &gt; 9)
              {
                  return this.Hours + &quot;:&quot; + this.Minutes;
              }
              else if (this.Hours &gt; 9 &amp;&amp; this.Minutes &lt; 10)
              {
                  return this.Hours + &quot;:&quot; + &quot;0&quot; + this.Minutes;
              }
              else if (this.Hours &lt; 10 &amp;&amp; this.Minutes &gt; 9)
              {
                  return &quot;0&quot; + this.Hours + &quot;:&quot; + this.Minutes;
              }
              else if (this.Hours &lt; 10 &amp;&amp; this.Minutes &lt; 10)
              {
                  return &quot;0&quot; + this.Hours + &quot;:&quot; + &quot;0&quot; + this.Minutes;
              }
              else
              {
                  return &quot;TimeStruct.Time&quot;;
              }
          }
  </code></pre>
  <p>These tests in one project prevent me from carrying out this task
  Below there are the tests:</p>
  <pre><code>        [Test]
          [TestCaseSource(typeof(TestCasesSource), 
            nameof(TestCasesSource.TestCasesForToStringThroughObject))]
          public void ToStringThroughObjectTests(object time)
          {
              Assert.AreEqual(&quot;TimeStruct.Time&quot;, time.ToString());
          }
  
          [Test]
          [TestCaseSource(typeof(TestCasesSource), nameof(TestCasesSource.TestCasesForToString))]
          public void ToStringTests(Time time, string str)
          {
              Assert.AreEqual(str, time.ToString());
          }
  
          public static IEnumerable&lt;TestCaseData&gt; TestCasesForToStringThroughObject
          {
              get
              {
                  yield return new TestCaseData(new Time(24, 0)); //result is TimeStruct.Time
              }
          }
  
          public static IEnumerable&lt;TestCaseData&gt; TestCasesForToString
          {
              get
              {
                  yield return new TestCaseData(new Time(8, 0), &quot;08:00&quot;); //result is 08:00
              }
          }
  </code></pre>
  <p>It is the way for creating ToString method such as these two tests will pass in one moment ?
  I would be grateful for any help.</p>