private OpcUaModelCompiler.LocalizedText CreateSource() { OpcUaModelCompiler.LocalizedText source = new OpcUaModelCompiler.LocalizedText(); source.Key = Key; source.Value = Value; return(source); }
/// <summary> /// Initializes a new instance of the <see cref="LocalizedText"/> class on the base of <see cref="OpcUaModelCompiler.LocalizedText"/>. /// </summary> /// <param name="source">The source.</param> public LocalizedText(OpcUaModelCompiler.LocalizedText source) { if (source == null) { return; } this.Key = source.Key; this.Value = source.Value; }
internal static void Compare(this OpcUaModelCompiler.LocalizedText expected, OpcUaModelCompiler.LocalizedText actual) { if (expected == null && actual == null) { return; } Assert.IsNotNull(expected); Assert.IsNotNull(actual); Assert.AreEqual <string>(expected.Key, actual.Key); Assert.AreEqual <string>(expected.Value, actual.Value); }