public void ShouldReadFromFile(List <string> fileLines, NodeState state) { string tmpFilePAth = Path.GetTempFileName(); File.WriteAllLines(tmpFilePAth, fileLines); ConfigurationFileHandler cfh = new ConfigurationFileHandler(tmpFilePAth); NodeState resultState = cfh.ReadCurrentState(); resultState.Should().BeEquivalentTo(state); }