You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sb.Append(methodIndent).Append("/// Configures <see cref=\"").Append(receiverTypeXml).Append('.').Append(EscapeIdentifier(propName)).AppendLine("\"/> from a <see cref=\"global::XenoAtom.Terminal.UI.State{T}\"/> and returns the same instance.");
sb.Append(methodIndent).AppendLine("/// <param name=\"obj\">The instance to configure.</param>");
993
-
sb.Append(methodIndent).Append("/// <param name=\"").Append(EscapeIdentifier(argName)).AppendLine("\">The state providing the current value.</param>");
994
-
sb.Append(methodIndent).AppendLine("/// <returns>The same instance for chaining.</returns>");
sb.Append(methodIndent).Append("public static T ").Append(EscapeIdentifier(propName)).Append("<T>(this T obj, global::XenoAtom.Terminal.UI.State<").Append(argType).Append("> ").Append(EscapeIdentifier(argName))
1001
-
.Append(") where T : ").Append(receiverType).AppendLine();
sb.Append(methodIndent).Append("public static T ").Append(EscapeIdentifier(propName)).Append("<T>(this T obj, global::XenoAtom.Terminal.UI.State<").Append(argType).Append("> ").Append(EscapeIdentifier(argName))
1029
-
.Append(") where T : ").Append(receiverType).AppendLine();
Copy file name to clipboardExpand all lines: src/XenoAtom.Terminal.UI.Tests/TerminalUiGeneratorTests.cs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,8 @@ public sealed class PointerPressedEventArgs : RoutedEventArgs
82
82
Assert.IsTrue(generatedSources.Any(s =>s.Contains("__Title__BindingAccessor",StringComparison.Ordinal)),"Expected generated accessor for custom bindable property.");
83
83
Assert.IsFalse(generatedSources.Any(s =>s.Contains("private global::System.String _title",StringComparison.Ordinal)),"Did not expect generated backing field for custom bindable property.");
Assert.IsTrue(generatedSources.Any(s =>s.Contains("Count<T>(this T obj, global::XenoAtom.Terminal.UI.State<",StringComparison.Ordinal)),"Expected generated fluent overloads for State<T>.");
85
+
Assert.IsTrue(generatedSources.Any(s =>s.Contains("Count<T>(this T obj, global::XenoAtom.Terminal.UI.Binding<int>",StringComparison.Ordinal)),"Expected generated fluent overloads for Binding<T>.");
86
+
Assert.IsFalse(generatedSources.Any(s =>s.Contains("Count<T>(this T obj, global::XenoAtom.Terminal.UI.State<",StringComparison.Ordinal)),"Did not expect generated fluent overloads for State<T>.");
0 commit comments