BudgetAnalyser.Engine.UnitTest.Matching.XamlOnDiskMatchingRuleRepositoryTest.LoadShouldThrowGivenBadFileFormat C# (CSharp) 메소드

LoadShouldThrowGivenBadFileFormat() 개인적인 메소드

private LoadShouldThrowGivenBadFileFormat ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task
        public async Task LoadShouldThrowGivenBadFileFormat()
        {
            var subject = ArrangeUsingEmbeddedResources();
            subject.LoadFromDiskOveride = fileName => { throw new Exception(); };
            await subject.LoadAsync("foo.bar", false);
            Assert.Fail();
        }