public void Given_InvalidFile_WhenDeserialize_Then_NoResult() { BaseViewModel vmUnderTest = new BaseViewModel(); Assert.IsNull(vmUnderTest.DeserializeToObject <CountriesStates>(@"test123.txt")); }