コード例 #1
0
ファイル: Basics.cs プロジェクト: dpvreony/nucleotide
        public static void TestUnsignedInteger8PropertyInfoGetMutatorMinNullOptional()
        {
            const Dhgms.Nucleotide.Model.CollectionType CollectionType = Dhgms.Nucleotide.Model.CollectionType.GenericLinkedList;
            const string Name = "Name";
            const string Description = "Description";
            const bool Optional = false;

            Dhgms.Nucleotide.PropertyInfo.UnsignedInteger8PropertyInfo instance = new Dhgms.Nucleotide.PropertyInfo.UnsignedInteger8PropertyInfo(
                CollectionType,
                Name,
                Description,
                Optional,
                null,
                255,
                true,
                null);

            Console.Write(instance.GetMutator());
        }
コード例 #2
0
ファイル: Basics.cs プロジェクト: dpvreony/nucleotide
        public static void TestUnsignedInteger8PropertyInfoConstructorBasicArguments()
        {
            const Dhgms.Nucleotide.Model.CollectionType CollectionType = Dhgms.Nucleotide.Model.CollectionType.GenericLinkedList;
            const string Name = "Name";
            const string Description = "Description";
            const bool Optional = false;

            Dhgms.Nucleotide.PropertyInfo.UnsignedInteger8PropertyInfo instance = new Dhgms.Nucleotide.PropertyInfo.UnsignedInteger8PropertyInfo(
                CollectionType,
                Name,
                Description,
                Optional,
                null,
                null,
                true,
                null);

            Assert.Equal(CollectionType, instance.Collection);
            Assert.Equal(Name, instance.Name);
            Assert.Equal(Description, instance.Description);
            Assert.Equal(Optional, instance.Optional);
        }