public void Constructor_ReadsFromFileCorrectly() { // Arrange var fileSystemService = new FileSystemService(); var service = new StaticDataService(fileSystemService); // Act // Assert }
public void Constructor_CallsFileSystemService() { // Arrange var mockFileSystemService = new Mock<IFileSystemService>(); mockFileSystemService.Setup(f => f.ReadFileAsString(It.IsAny<string>())).Returns("TestResult").Verifiable(); var service = new StaticDataService(mockFileSystemService.Object); // Act // Assert mockFileSystemService.Verify(); }