コード例 #1
0
 public EntityTestBase(ITestOutputHelper logger)
     : base(logger)
 {
     this.dbPath       = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
     this.Money        = MoneyFile.Load(this.dbPath);
     this.Money.Logger = new TestLoggerAdapter(this.Logger);
 }
コード例 #2
0
    private MoneyFile Load()
    {
        var file = MoneyFile.Load(this.dbPath);

        file.Logger = new TestLoggerAdapter(this.logger);
        return(file);
    }
コード例 #3
0
 public void Load_ThrowsOnNullOrEmpty()
 {
     Assert.Throws <ArgumentNullException>(() => MoneyFile.Load(null));
     Assert.Throws <ArgumentException>(() => MoneyFile.Load(string.Empty));
 }