Is writing tests like this worth it - C#