本文整理汇总了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());
}
示例2: SCCodeOriginalTextTest
public void SCCodeOriginalTextTest()
{
SC sc = new SC();
sc.Value = null;
sc.Code = "284196006";
sc.Code.OriginalText = "Hello!";
Assert.IsFalse(sc.Validate());
}
示例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());
}
示例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());
}
示例5: SCCodeCodeSystemNullValueTest
public void SCCodeCodeSystemNullValueTest()
{
SC sc = new SC();
sc.Value = null;
sc.Code = "284196006";
Assert.IsFalse(sc.Validate());
}
示例6: SCValueNullFlavorTest
public void SCValueNullFlavorTest()
{
SC sc = new SC();
sc.Value = "Hello";
sc.Code = null;
sc.NullFlavor = NullFlavor.NotAsked;
Assert.IsFalse(sc.Validate());
}
示例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());
}
示例8: SCNullFlavorTest
public void SCNullFlavorTest()
{
SC sc = new SC();
sc.Value = null;
sc.Code = null;
sc.NullFlavor = NullFlavor.NotAsked;
Assert.IsTrue(sc.Validate());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}