can some one tell what im doing wrong in my linq, basicall in the
operation test for a neither one of the values have a fail and its
jumping in the case, im look for any tests that has value of fail
and
it has a value of fail jump into the case, for some some reason its
jumping into the case when all tests has a value of pass, i think its
the count > 0 is probably why, what to use instead of the .count
if (Operation.Tests.Select(t => ((t.StatusByTest != null) && (t.StatusByTest.Equals("FAIL")))).Count() > 0)
{
Operation.StatusByOp = "FAIL";
}