当前位置: 首页>>代码示例>>C#>>正文


C# SC.Validate方法代码示例

本文整理汇总了C#中SC.Validate方法的典型用法代码示例。如果您正苦于以下问题:C# SC.Validate方法的具体用法?C# SC.Validate怎么用?C# SC.Validate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SC的用法示例。


在下文中一共展示了SC.Validate方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SCValueTest

 public void SCValueTest()
 {
     SC sc = new SC();
     sc.Value = "Hello";
     sc.Code = null;
     sc.NullFlavor = null;
     Assert.IsTrue(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:8,代码来源:SCTest.cs

示例2: SCCodeOriginalTextTest

 public void SCCodeOriginalTextTest()
 {
     SC sc = new SC();
     sc.Value = null;
     sc.Code = "284196006";
     sc.Code.OriginalText = "Hello!";
     Assert.IsFalse(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:8,代码来源:SCTest.cs

示例3: SCCodeCodeSystemTest

 public void SCCodeCodeSystemTest()
 {
     SC sc = new SC();
     sc.Value = null;
     sc.Code = "284196006";
     sc.Code.CodeSystem = "2.16.840.1.113883.6.96";
     sc.Code.CodeSystemName = null;
     sc.Code.CodeSystemVersion = null;
     sc.Code.DisplayName = null;
     sc.NullFlavor = null;
     Assert.IsFalse(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:12,代码来源:SCTest.cs

示例4: SCValueCodeCodeSystemTestCodeSystemNameCodeSystemVersionDisplayNameNullFlavorTest

 public void SCValueCodeCodeSystemTestCodeSystemNameCodeSystemVersionDisplayNameNullFlavorTest()
 {
     SC sc = new SC();
     sc.Value = "Hello";
     sc.Code = "284196006";
     sc.Code.CodeSystem = "2.16.840.1.113883.6.96";
     sc.Code.CodeSystemName = "SNOMEDCT";
     sc.Code.CodeSystemVersion = "2009-B1";
     sc.Code.DisplayName = "Burn of skin";
     sc.NullFlavor = NullFlavor.NotAsked;
     Assert.IsFalse(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:12,代码来源:SCTest.cs

示例5: SCCodeCodeSystemNullValueTest

 public void SCCodeCodeSystemNullValueTest()
 {
     SC sc = new SC();
     sc.Value = null;
     sc.Code = "284196006";
     Assert.IsFalse(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:7,代码来源:SCTest.cs

示例6: SCValueNullFlavorTest

        public void SCValueNullFlavorTest()
        {
            SC sc = new SC();
            sc.Value = "Hello";
            sc.Code = null;

            sc.NullFlavor = NullFlavor.NotAsked;
            Assert.IsFalse(sc.Validate());
        }
开发者ID:oneminot,项目名称:everest,代码行数:9,代码来源:SCTest.cs

示例7: SCValueCodeNullFlavorTest

 public void SCValueCodeNullFlavorTest()
 {
     SC sc = new SC();
     sc.Value = "Hello";
     sc.Code = "284196006";
     sc.Code.CodeSystem = null;
     sc.Code.CodeSystemName = null;
     sc.Code.CodeSystemVersion = null;
     sc.Code.DisplayName = null;
     sc.NullFlavor = NullFlavor.NotAsked;
     Assert.IsFalse(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:12,代码来源:SCTest.cs

示例8: SCNullFlavorTest

        public void SCNullFlavorTest()
        {
            SC sc = new SC();
            sc.Value = null;
            sc.Code = null;

            sc.NullFlavor = NullFlavor.NotAsked;
            Assert.IsTrue(sc.Validate());
        }
开发者ID:oneminot,项目名称:everest,代码行数:9,代码来源:SCTest.cs

示例9: SCValueDisplayNameTest

 public void SCValueDisplayNameTest()
 {
     SC sc = new SC();
     sc.Value = "Hello";
     sc.Code = new CD<string>() { NullFlavor = NullFlavor.NotApplicable };
     sc.NullFlavor = null;
     Assert.IsFalse(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:8,代码来源:SCTest.cs

示例10: SCValueCodeDisplayNameTest

 public void SCValueCodeDisplayNameTest()
 {
     SC sc = new SC();
     sc.Value = "Hello";
     sc.Code = "284196006";
     sc.Code.CodeSystem = null;
     sc.Code.CodeSystemName = null;
     sc.Code.CodeSystemVersion = null;
     sc.Code.DisplayName = "Burn of skin";
     sc.NullFlavor = null;
     Assert.IsTrue(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:12,代码来源:SCTest.cs

示例11: SCValueCodeCodeSystemNameCodeSystemVersionTest

 public void SCValueCodeCodeSystemNameCodeSystemVersionTest()
 {
     SC sc = new SC();
     sc.Value = "Hello";
     sc.Code = "284196006";
     sc.Code.CodeSystem = null;
     sc.Code.CodeSystemName = "SNOMEDCT";
     sc.Code.CodeSystemVersion = "2009-B1";
     sc.Code.DisplayName = null;
     sc.NullFlavor = null;
     Assert.IsFalse(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:12,代码来源:SCTest.cs

示例12: SCValueCodeCodeSystemCodeSystemNameTest

 public void SCValueCodeCodeSystemCodeSystemNameTest()
 {
     SC sc = new SC();
     sc.Value = "Hello";
     sc.Code = "284196006";
     sc.Code.CodeSystem = "2.16.840.1.113883.6.96";
     sc.Code.CodeSystemName = "SNOMEDCT";
     sc.Code.CodeSystemVersion = null;
     sc.Code.DisplayName = null;
     sc.NullFlavor = null;
     Assert.IsTrue(sc.Validate());
 }
开发者ID:oneminot,项目名称:everest,代码行数:12,代码来源:SCTest.cs


注:本文中的SC.Validate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。