<TemplatesExport>
  <Folder name="File 'UserFileTemplates.xml'">
    <Template uid="1f76eba1-aa1d-40ec-957f-5525ef34df53" text="using System.IO;&#xD;&#xA;using System.Runtime.Serialization.Formatters.Binary;&#xD;&#xA;using NUnit.Framework;&#xD;&#xA;&#xD;&#xA;namespace $NAMESPACE$&#xD;&#xA;{&#xD;&#xA;    [TestFixture]&#xD;&#xA;    public class $CLASSNAME$&#xD;&#xA;    {&#xD;&#xA;        [Test]&#xD;&#xA;        public void SerializationShouldNotThrowException()&#xD;&#xA;        {&#xD;&#xA;            using (MemoryStream stream = new MemoryStream())&#xD;&#xA;                new BinaryFormatter().Serialize(stream, Create());&#xD;&#xA;        }&#xD;&#xA;        &#xD;&#xA;        [Test]&#xD;&#xA;        public void ConstructorShouldReturnInstanceOf$Type_Under_Test$()&#xD;&#xA;        {&#xD;&#xA;            Assert.IsInstanceOfType(typeof ($Type_Under_Test$), Create());&#xD;&#xA;        }&#xD;&#xA;        &#xD;&#xA;        protected virtual $Type_Under_Test$ Create()&#xD;&#xA;        {&#xD;&#xA;            return new $Type_Under_Test$($END$);&#xD;&#xA;        }&#xD;&#xA;    }&#xD;&#xA;}" shortcut="" description="Test Fixture" reformat="true" shortenQualifiedReferences="true">
      <Context>
        <ProjectLanguageContext language="CSharp" />
      </Context>
      <Variables>
        <Variable name="NAMESPACE" expression="fileDefaultNamespace()" initialRange="0" />
        <Variable name="CLASSNAME" expression="getFileNameWithoutExtension()" initialRange="0" />
        <Variable name="Type_Under_Test" expression="constant(&quot;Type_Under_Test&quot;)" initialRange="2" />
      </Variables>
      <CustomProperties>
        <Property key="FileName" value="Fixture" />
        <Property key="Extension" value="cs" />
        <Property key="ValidateFileName" value="False" />
      </CustomProperties>
    </Template>
    <Template uid="305e8d06-990e-47ee-93a6-fe5d7425a0f8" text="using System;&#xD;&#xA;using System.Collections;&#xD;&#xA;using NUnit.Framework;&#xD;&#xA;&#xD;&#xA;namespace $namespace$&#xD;&#xA;{&#xD;&#xA;    [TestFixture]&#xD;&#xA;    public class $classname$&#xD;&#xA;    {&#xD;&#xA;        [Test]&#xD;&#xA;        public void ConstructorShouldReturnInstanceOf$collection_type_name$()&#xD;&#xA;        {&#xD;&#xA;            Assert.IsInstanceOfType(typeof ($collection_type_name$), new $collection_type_name$());&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        [Test]&#xD;&#xA;        public void AddShouldAddInstanceOf$collected_type_name$To$collection_type_name$()&#xD;&#xA;        {&#xD;&#xA;            $collected_type_name$ collectionObject = this.Create();&#xD;&#xA;            $collection_type_name$ collection = new $collection_type_name$();&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            Assert.AreEqual(collection[0], collectionObject);&#xD;&#xA;            Assert.AreEqual(1, collection.Count);&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            Assert.AreEqual(collection[0], collectionObject);&#xD;&#xA;            Assert.AreEqual(collection[1], collectionObject);&#xD;&#xA;            Assert.AreEqual(2, collection.Count);&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        [Test]&#xD;&#xA;        public void ContainsShouldReturnTrueWhenInstanceOf$collected_type_name$ExistsIn$collection_type_name$()&#xD;&#xA;        {&#xD;&#xA;            $collected_type_name$ collectionObject = this.Create();&#xD;&#xA;            $collection_type_name$ collection = new $collection_type_name$();&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            Assert.IsTrue(collection.Contains(collectionObject));&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        [Test]&#xD;&#xA;        public void ItemShouldReturnInstanceOf$collected_type_name$EqualToArgumentPassedToAdd()&#xD;&#xA;        {&#xD;&#xA;            $collected_type_name$ collectionObject = this.Create();&#xD;&#xA;            $collection_type_name$ collection = new $collection_type_name$();&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            Assert.AreEqual(collection[0], collectionObject);&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        [Test]&#xD;&#xA;        public void RemoveShouldRemoveInstanceOf$collected_type_name$ThatWasPassedToAdd()&#xD;&#xA;        {&#xD;&#xA;            $collected_type_name$ collectionObject = this.Create();&#xD;&#xA;            $collection_type_name$ collection = new $collection_type_name$();&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            collection.Remove(collectionObject);&#xD;&#xA;            Assert.AreEqual(0, collection.Count);&#xD;&#xA;            collection.Remove(collectionObject);&#xD;&#xA;            Assert.AreEqual(0, collection.Count);&#xD;&#xA;            collection.Remove(null);&#xD;&#xA;            Assert.AreEqual(0, collection.Count);&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            Assert.AreEqual(1, collection.Count);&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            Assert.AreEqual(2, collection.Count);&#xD;&#xA;            collection.Remove(collectionObject);&#xD;&#xA;            Assert.AreEqual(0, collection.Count);&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        [Test]&#xD;&#xA;        public void RemoveWithIndexShouldRemoveInstanceOf$collected_type_name$ThatWasPassedToAdd()&#xD;&#xA;        {&#xD;&#xA;            $collected_type_name$ collectionObject = this.Create();&#xD;&#xA;            $collection_type_name$ collection = new $collection_type_name$();&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            collection.Remove(0);&#xD;&#xA;            Assert.AreEqual(0, collection.Count);&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        [Test]&#xD;&#xA;        [ExpectedException(typeof (ArgumentException))]&#xD;&#xA;        public void AddShouldThrowExceptionWhen$collected_type_name$IsNull()&#xD;&#xA;        {&#xD;&#xA;            $collection_type_name$ collection = new $collection_type_name$();&#xD;&#xA;            collection.Add(null);&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        [Test]&#xD;&#xA;        public void EnumeratorResetShouldMoveIteratorToBeginningOfList()&#xD;&#xA;        {&#xD;&#xA;            $collection_type_name$ collection = new $collection_type_name$();&#xD;&#xA;            $collected_type_name$ collectionObject = this.Create();&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            collectionObject = this.Create();&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            IEnumerator enumerator = collection.GetEnumerator();&#xD;&#xA;            enumerator.MoveNext();&#xD;&#xA;            enumerator.MoveNext();&#xD;&#xA;            enumerator.Reset();&#xD;&#xA;            enumerator.MoveNext();&#xD;&#xA;            Assert.AreEqual(collection[0], enumerator.Current as $collected_type_name$);&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        [Test]&#xD;&#xA;        public void GetEnumeratorShouldReturnInstanceOfIEnumerator()&#xD;&#xA;        {&#xD;&#xA;            $collection_type_name$ collection = new $collection_type_name$();&#xD;&#xA;            $collected_type_name$ collectionObject = this.Create();&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            collectionObject = this.Create();&#xD;&#xA;            collection.Add(collectionObject);&#xD;&#xA;            IEnumerator enumerable = ((IEnumerable) collection).GetEnumerator();&#xD;&#xA;            Assert.IsNotNull(enumerable);&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        [Test]&#xD;&#xA;        [ExpectedException(typeof (ArgumentOutOfRangeException))]&#xD;&#xA;        public void RemoveShouldThrowExceptionWhenIndexIsOutOfRange()&#xD;&#xA;        {&#xD;&#xA;            $collection_type_name$ collection = new $collection_type_name$();&#xD;&#xA;            collection.Remove(0);&#xD;&#xA;        }&#xD;&#xA;&#xD;&#xA;        protected virtual $collected_type_name$ Create()&#xD;&#xA;        {&#xD;&#xA;            $code_to_create_collected_type$;&#xD;&#xA;        }&#xD;&#xA;    }&#xD;&#xA;}" shortcut="" description="Strong Collection Fixture" reformat="true" shortenQualifiedReferences="true">
      <Context>
        <ProjectLanguageContext language="CSharp" />
      </Context>
      <Variables>
        <Variable name="namespace" expression="fileDefaultNamespace()" initialRange="0" />
        <Variable name="classname" expression="getFileNameWithoutExtension()" initialRange="0" />
        <Variable name="collection_type_name" expression="constant(&quot;type name of strong collection&quot;)" initialRange="0" />
        <Variable name="collected_type_name" expression="constant(&quot;type name of objects in strong collection&quot;)" initialRange="0" />
        <Variable name="code_to_create_collected_type" expression="constant(&quot;return null;&quot;)" initialRange="0" />
      </Variables>
      <CustomProperties>
        <Property key="FileName" value="CollectionFixture" />
        <Property key="Extension" value="cs" />
      </CustomProperties>
    </Template>
  </Folder>
</TemplatesExport>