So I have a big list with tests that possibly are run maximum 3 times, and possibly have the same message 2 times, and the third time it could have a distinct message than the previous two runs. I am trying to implement a code that will show only unique tests, with unique outcomes. To have a better view, this would be a use case:
testname="TestABC" errormessage="ErrXYZ"
testname="Test3454" errormessage="Err123"
testname="TestABC" errormessage="Err123"
testname="TestABC" errormessage="ErrXYZ"
testname="Test3454" errormessage="ErrYTR"
testname="Test3454" errormessage="ErrABC"
As you can see, "TestABC" appears 2 times with the same error, and one time with a different error. I would like to see the following output after the filtering:
testname="TestABC" errormessage="ErrXYZ"
testname="Test3454" errormessage="Err123"
testname="TestABC" errormessage="Err123"
testname="Test3454" errormessage="ErrYTR"
testname="Test3454" errormessage="ErrABC"
I am quite new to C#, and would appreciate any help or guidance. Thanks!