@@ -55,15 +55,15 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
55
55
Assert . IsNotNull ( child , "Could not find inner Border" ) ;
56
56
57
57
// Check Size
58
- Assert . AreEqual ( 100 , child . ActualWidth , 1 , "Actual width does not meet expected value of 100" ) ;
59
- Assert . AreEqual ( 200 , child . ActualHeight , 1 , "Actual height does not meet expected value of 200" ) ;
58
+ Assert . AreEqual ( 100 , child . ActualWidth , 0.01 , "Actual width does not meet expected value of 100" ) ;
59
+ Assert . AreEqual ( 200 , child . ActualHeight , 0.01 , "Actual height does not meet expected value of 200" ) ;
60
60
61
61
// Check inner Positioning, we do this from the Grid as the ConstainedBox also modifies its own size
62
62
// and is hugging the child.
63
63
var position = grid . CoordinatesTo ( child ) ;
64
64
65
- Assert . AreEqual ( 50 , position . X ) ;
66
- Assert . AreEqual ( 0 , position . Y ) ;
65
+ Assert . AreEqual ( 50 , position . X , 0.01 , "X position does not meet expected value of 50" ) ;
66
+ Assert . AreEqual ( 0 , position . Y , 0.01 , "Y position does not meet expected value of 0" ) ;
67
67
} ) ;
68
68
}
69
69
@@ -104,15 +104,15 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
104
104
Assert . IsNotNull ( child , "Could not find inner Border" ) ;
105
105
106
106
// Check Size
107
- Assert . AreEqual ( 200 , child . ActualWidth , 1 , "Actual width does not meet expected value of 200" ) ;
108
- Assert . AreEqual ( 100 , child . ActualHeight , 1 , "Actual height does not meet expected value of 100" ) ;
107
+ Assert . AreEqual ( 200 , child . ActualWidth , 0.01 , "Actual width does not meet expected value of 200" ) ;
108
+ Assert . AreEqual ( 100 , child . ActualHeight , 0.01 , "Actual height does not meet expected value of 100" ) ;
109
109
110
110
// Check inner Positioning, we do this from the Grid as the ConstainedBox also modifies its own size
111
111
// and is hugging the child.
112
112
var position = grid . CoordinatesTo ( child ) ;
113
113
114
- Assert . AreEqual ( 0 , position . X ) ;
115
- Assert . AreEqual ( 50 , position . Y ) ;
114
+ Assert . AreEqual ( 0 , position . X , 0.01 , "X position does not meet expected value of 0" ) ;
115
+ Assert . AreEqual ( 50 , position . Y , 0.01 , "Y position does not meet expected value of 50" ) ;
116
116
} ) ;
117
117
}
118
118
}
0 commit comments