コード例 #1
0
        public void FailGetSetRessource(IRessourceService manager)
        {
            manager.Invoking(x => x.GetRessource <RessourceString>(null)).Should().Throw <ArgumentNullException>();
            Func <Task> call = () => manager.GetRessourceAsync <RessourceString>(null);

            call.Should().Throw <ArgumentNullException>();

            manager.Invoking(x => x.SetRessource <RessourceString>(null)).Should().Throw <ArgumentNullException>();
            Func <Task> call2 = () => manager.SetRessourceAsync <RessourceString>(null);

            call2.Should().Throw <ArgumentNullException>();
        }