using System; using NUnit.Framework; namespace Chernobyl.Creation { [TestFixture, Description("Tests for the FuncFactory type.")] public class FuncFactoryTests : FactoryTests { protected override IFactory CreateSuccessfulFactory() { return new FuncFactory(() => 3); } protected override IFactory CreateFailureFactory() { return new FuncFactory(() => { throw new ArgumentException(); }); } protected override int GetProperlyCreatedItem() { return 3; } } }