This is a flawed test. 

Assert followed by logic followed by assert is the sign of a test that tests 2 cases. Split them up in 2 separate tests. A test is almost always 3 phases:
1) initialize
2) do
3) assert

Any violation of this is a sign of an unhealthy test.