Testing Basics
Test Summary
Summarize passed and failed checks after a small test run.
Test Summary
TestSummary.cs
using System;
class Program
{
static void Main()
{
int failed = ;
int total = 5;
int passed = total - failed;
string status = failed == 0 ? "green" : "red";
Console.WriteLine($"total={total}");
Console.WriteLine($"passed={passed}");
Console.WriteLine($"failed={failed}");
Console.WriteLine($"status={status}");
}
}
using System;
class Program
{
static void Main()
{
int failed = ;
int total = 5;
int passed = total - failed;
string status = failed == 0 ? "green" : "red";
Console.WriteLine($"total={total}");
Console.WriteLine($"passed={passed}");
Console.WriteLine($"failed={failed}");
Console.WriteLine($"status={status}");
}
}
using System;
class Program
{
static void Main()
{
int failed = ;
int total = 5;
int passed = total - failed;
string status = failed == 0 ? "green" : "red";
Console.WriteLine($"total={total}");
Console.WriteLine($"passed={passed}");
Console.WriteLine($"failed={failed}");
Console.WriteLine($"status={status}");
}
}
testing
A test runner reports enough summary information to tell whether the suite is clean or needs attention.