public void PBToDTOPattern() { PatternDTO dtoStart = Misc.CreatePatternDTO; PBPattern pb = dtoStart.ToPBPattern(); PatternDTO dtoEnd = pb.ToPattern(); Assert.True(dtoStart.CompareTo(dtoEnd) == 0); }
public static PatternDTO ToPattern(this PBPattern c) { //# Tested return(new PatternDTO(c.PublicId.ToPublicId())); }