Skip to content

Commit

Permalink
Fixed unit test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre3 committed Mar 2, 2024
1 parent f6daf35 commit 73c40bb
Showing 1 changed file with 14 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,56 +1,51 @@
using PlantUmlClassDiagramGenerator.Attributes;

namespace PlantUmlClassDiagramGeneratorTest.testData;


class ClassA
{
[PlantUmlAssociation(Association ="*--")]
[PlantUmlAssociation(Association = "*--")]
public string Prop1 { get; set; }
[PlantUmlIgnore]
public int Prop2 { get; set; }
}


[PlantUmlDiagram]
class ClassB
{
[PlantUmlAssociation(Association = "*--")]
public string Prop1 { get; set; }
[PlantUmlIgnore]
public int Prop2 { get; set; }
}

interface IInterfaceA
{
[PlantUmlAssociation(Association ="--",Label ="double property")]
[PlantUmlAssociation(Association = "--", Label = "double property")]
double Num1 { get; }
double Num2 { get; }
}


[PlantUmlDiagram]
interface IInterfaceB
{
[PlantUmlAssociation(Association = "--", Label = "double property")]
double Num1 { get; }
double Num2 { get; }
}

record RecordA
{
public string Prop1 { get; }
public string Prop2 { get; }
public RecordA(string prop1, string prop2) => (Prop1, Prop2) = (prop1, prop2);

}

}

[PlantUmlDiagram]
record RecordB
{
public string Prop1 { get; }
public string Prop2 { get; }
public RecordB(string prop1, string prop2) => (Prop1, Prop2) = (prop1, prop2);
}

struct StructA
{
private RecordA field1;
Expand All @@ -60,20 +55,20 @@ public StructA([PlantUmlAssociation(Association = "-->", Label = "use")] RecordA
}
}


[PlantUmlDiagram]
struct StructB
{
private RecordB field1;
public StructB([PlantUmlAssociation(Association ="-->",Label ="use")]RecordB field1)
public StructB([PlantUmlAssociation(Association = "-->", Label = "use")] RecordB field1)
{
this.field1 = field1;
}
}

record struct RecordStructA(int X,int Y);

record struct RecordStructA(int X, int Y);

record struct RecordStructB(int X,int Y);
[PlantUmlDiagram]
record struct RecordStructB(int X, int Y);

enum EnumA
{
Expand All @@ -82,10 +77,10 @@ enum EnumA
C
}


[PlantUmlDiagram]
enum EnumB
{
A,
B,
C
}
}

0 comments on commit 73c40bb

Please sign in to comment.