public void User_options_are_not_loaded_if_the_file_does_not_exist() { const string projectLocation = "test.gallio"; fileSystem.Stub(fs => fs.FileExists(projectLocation + UserOptions.Extension)) .Return(false); controller.Handle(new ProjectLoaded(projectLocation)); xmlSerializer.AssertWasNotCalled(xs => xs.LoadFromXml <UserOptions>(Arg <string> .Is.Anything)); }