public void assign_with_a_value()
        {
            bool assigned = true;

            var generator = new StringIdGeneration();
            generator.Assign("something", out assigned).ShouldBe("something");

            assigned.ShouldBeFalse();
        }
        public void assign_with_a_value()
        {
            bool assigned = true;

            var generator = new StringIdGeneration();

            generator.Assign(null, "something", out assigned).ShouldBe("something");

            assigned.ShouldBeFalse();
        }
        public void assign_when_null()
        {
            bool assigned = true;

            var generator = new StringIdGeneration();


            Exception <InvalidOperationException> .ShouldBeThrownBy(() =>
            {
                generator.Assign(null, null, out assigned);
            });
        }
        public void assign_when_null()
        {
            bool assigned = true;

            var generator = new StringIdGeneration();


            Exception<InvalidOperationException>.ShouldBeThrownBy(() =>
            {
                generator.Assign(null, out assigned);
            });
        }
        public void build_returns_itself()
        {
            var generator = new StringIdGeneration();

            generator.Build <string>().ShouldBeSameAs(generator);
        }
        public void build_returns_itself()
        {
            var generator = new StringIdGeneration();

            generator.Build<string>(null).ShouldBeSameAs(generator);
        }