From abbfd83abfe13d80ce7522c78aba78080a36ac8c Mon Sep 17 00:00:00 2001 From: LucoMoro Date: Wed, 28 Feb 2024 22:17:59 +0100 Subject: [PATCH] Add DDAutortshipEdge getter tests --- .../DDAutorshipEdgeTest.class.st | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/DiscOrDance-Model-Tests/DDAutorshipEdgeTest.class.st b/src/DiscOrDance-Model-Tests/DDAutorshipEdgeTest.class.st index 9b752c5..0259e95 100644 --- a/src/DiscOrDance-Model-Tests/DDAutorshipEdgeTest.class.st +++ b/src/DiscOrDance-Model-Tests/DDAutorshipEdgeTest.class.st @@ -33,6 +33,16 @@ DDAutorshipEdgeTest >> testMessage [ { #category : #test } DDAutorshipEdgeTest >> testNode1 [ +"This method checks if node1's getter works without giving any input" + + | aDDAutorshipEdge | + aDDAutorshipEdge := DDAutorshipEdge new. + + self assert: aDDAutorshipEdge node1 equals: nil. +] + +{ #category : #test } +DDAutorshipEdgeTest >> testNode1_2 [ "This method checks if node1's getter and setter works given an input" | aDDAutorshipEdge | @@ -45,6 +55,16 @@ DDAutorshipEdgeTest >> testNode1 [ { #category : #test } DDAutorshipEdgeTest >> testNode2 [ + "This method checks if node2's getter works without giving any input" + + | aDDAutorshipEdge | + aDDAutorshipEdge := DDAutorshipEdge new. + + self assert: aDDAutorshipEdge node2 equals: nil. +] + +{ #category : #test } +DDAutorshipEdgeTest >> testNode2_2 [ "This method checks if node2's getter and setter works without giving any input" | aDDAutorshipEdge |